Created
May 6, 2015 16:58
-
-
Save nilsonpessim/fef873d964a4c7723ad8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int r = 6; | |
const int g = 5; | |
const int b = 3; | |
void setup(){ | |
pinMode(r,OUTPUT); | |
pinMode(g,OUTPUT); | |
pinMode(b,OUTPUT); | |
} | |
void loop (){ | |
analogWrite(r,255); | |
analogWrite(g,255); | |
analogWrite(b,255); | |
delay(1000); | |
analogWrite(r,255); | |
analogWrite(g,0); | |
analogWrite(b,0); | |
delay(1000); | |
analogWrite(r,0); | |
analogWrite(g,255); | |
analogWrite(b,0); | |
delay(1000); | |
analogWrite(r,0); | |
analogWrite(g,0); | |
analogWrite(b,255); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment