HowTo-Color (8) / Hacking Electronics / Simon Monk / 236-3 / Chapter 6
CHAPTER 6: Hacking Arduino
Figure 6-6 Uploading the Blink sketch
109
the sketch has used about 1kb of the 32k of flash memory available for programs on the Arduino. Note that if you are using a Leonardo, you may have to keep the Reset button depressed until you see the message “Uploading…” in the Arduino software.
Modifying the Blink Sketch It may be that your Arduino was already blinking when you first plugged it in. That is because the Arduino is often shipped with the Blink sketch already installed. If this is the case, you might like to prove to yourself that you have actually done something by changing the blink rate. We will now examine the Blink sketch and see how we could change it to make it blink faster.
06-ch06.indd 109
1/2/13 11:55 AM