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...
- 5. Programming Arduino
- from Arduino for Beginners: Essential Skills Every Maker Needs
- Publisher: Que
- Released: December 2013
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.
Share this highlighthttp://www.safaribooksonline.com/a/arduino-for-beginners/221849/