Created
June 27, 2013 05:25
-
-
Save AnnaGerber/5874143 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
// pwm pins for red, green and blue | |
int rled = 9; | |
int gled = 10; | |
int bled = 11; | |
void setup() { | |
pinMode(rled, OUTPUT); | |
pinMode(bled, OUTPUT); | |
pinMode(gled, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(rled, HIGH); | |
delay(1000); | |
digitalWrite(rled, LOW); | |
delay(1000); | |
digitalWrite(bled, HIGH); | |
delay(1000); | |
digitalWrite(bled, LOW); | |
delay(1000); | |
digitalWrite(gled, HIGH); | |
delay(1000); | |
digitalWrite(gled, LOW); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment