Now that you have your Arduino flashlight built, it’s time to create the sketch that will be uploaded to the Arduino so you can actually use it. A flashlight is a fairly simple device, and the sketch is fairly simple, too—we’ll go over the entire sketch in this chapter. And guess what? Even though your Challenge #2 gizmo has only one LED, you can easily add more. That’s the benefit of using an Arduino to power the LEDs. If you find that your flashlight isn’t bright enough, just add another LED!
KeywordsSimple Device Digital Device Output Device Digital Output Digital Input
Unable to display preview. Download preview PDF.