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 23:16] jwhendy [Components used] |
oak:tutorials:rgb-led [2016/04/19 17:44] (current) 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 | | ||
- | |220 ohm resistor| 3 | | | + | |Resistor, 220 ohm| 3 | Red-Red-Brown| |
**Note:** 220 ohms is a ballpark recommendation; acceptable values are between 100 - 1k ohms. | **Note:** 220 ohms is a ballpark recommendation; acceptable values are between 100 - 1k ohms. | ||
Line 57: | Line 57: | ||
pinMode(6, OUTPUT); | pinMode(6, OUTPUT); | ||
pinMode(7, OUTPUT); | pinMode(7, OUTPUT); | ||
- | pinMode(7, OUTPUT); | + | pinMode(8, OUTPUT); |
} | } |