Line 247: |
Line 247: |
| #define BLUEPIN (11) | | #define BLUEPIN (11) |
| </pre></code> | | </pre></code> |
| + | |
| + | And then, in your setup, add in the following: |
| + | <code><pre> |
| + | pinMode(REDPIN, OUTPUT); |
| + | pinMode(GREENPIN, OUTPUT); |
| + | pinMode(BLUEPIN, OUTPUT); |
| + | analogWrite(REDPIN, 255); |
| + | analogWrite(GREENPIN, 255); |
| + | analogWrite(BLUEPIN, 255); |
| + | </pre></code> |
| + | |
| + | When you run this code, it should turn the LED's all on, which will make a bright white light. Cool. |
| + | |
| + | Finally, when all appears to be working, download the [[Media:Mood_Light_Fader_Code.ino|fader code]] and test it. You should have a functioning system now! Congratulations. |