int red = 9;
int blue = 10;
int green = 11;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(red, OUTPUT);
pinMode(blue, OUTPUT);
pinMode(green, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
analogWrite(red, 0);
analogWrite(blue, 255);
analogWrite(green, 255);
delay(1000);
analogWrite(red, 255);
analogWrite(blue, 0);
analogWrite(green, 255);
delay(1000);
analogWrite(red, 255);
analogWrite(blue, 255);
analogWrite(green, 0);
delay(1000);
analogWrite(red, 0);
analogWrite(blue, 0);
analogWrite(green, 0);
delay(1000);
analogWrite(red, 0);
analogWrite(blue, 255);
analogWrite(green, 0);
delay(1000);
analogWrite(red, 0);
analogWrite(blue, 0);
analogWrite(green, 255);
delay(1000);
analogWrite(red, 255);
analogWrite(blue, 0);
analogWrite(green, 0);
delay(10000);
}