Hardware Reference
In-Depth Information
0 to 255, before returning back to zero. This will have the effect of starting with
the LED completely off and then slowly increasing brightness to full before
fading back to off.
Hardware
The code is done; the next thing to do is to actually create the circuit. This is
only a prototype, so you will be using a breadboard. It is one of the simplest
circuits you can build: two wires, one resistor, and one LED. The LED will be
powered by the Arduino board.
First things i rst—the breadboard view. My view is shown in Figure 3-8.
Figure 3-8: LED output (Image made with Fritzing)
After you re-create this circuit, you are now ready to upload your sketch
to the Arduino, wait a few seconds, and look at an LED fading beautifully.
Congratulations; you have just created your i rst hardware design! You now
know how to create a sketch, and you know how to create an electronic circuit.
The following chapters explain the different libraries in detail with example
sketches and circuits to help you along your way.
 
Search WWH ::




Custom Search