O'Reilly logo
  • Bill Levien thinks this is interesting:

Learning from Example Code

You can find tons of example sketches by choosing File > Examples in the Arduino software’s menu system (see Figure 5.8). Many of the examples cover basic stuff, but many of them serve as useful tutorials on advanced topics. This highlights the value of example code—not so much as a readymade solution, but more of a reference for learning the syntax to adapt for your own uses. For instance, choose File > Examples > Digital > Button. This sketch sho...


Cover of Arduino for Beginners: Essential Skills Every Maker Needs


Before we go past LEDs, this session will introduce the Arduino Examples and a few resources for finding example code and modifying it to suit your needs.

Example code will get you comfortable with programming faster than any other technique. As you continue to adapt them, typing the code from scratch will become far easier than copy/paste.