This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
oak:tutorials:rgb-led [2016/03/23 22:42] jwhendy added wiring image and gifs |
oak:tutorials:rgb-led [2016/04/19 17:44] jwhendy fixed wrong pin number |
||
|---|---|---|---|
| Line 12: | Line 12: | ||
| |Jumper wires | 4 | | | |Jumper wires | 4 | | | ||
| |RGB LED| 1 | whitish LED with 4 leads, one longer than the others | | |RGB LED| 1 | whitish LED with 4 leads, one longer than the others | | ||
| + | |Resistor, 220 ohm| 3 | Red-Red-Brown| | ||
| + | |||
| + | **Note:** 220 ohms is a ballpark recommendation; acceptable values are between 100 - 1k ohms. | ||
| ===== Concepts ===== | ===== Concepts ===== | ||
| Line 54: | Line 57: | ||
| pinMode(6, OUTPUT); | pinMode(6, OUTPUT); | ||
| pinMode(7, OUTPUT); | pinMode(7, OUTPUT); | ||
| - | pinMode(7, OUTPUT); | + | pinMode(8, OUTPUT); |
| } | } | ||