void setup() {
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
pinMode(11,OUTPUT);
}
void loop() {
analogWrite(9,255); //send a very high signal to this color light
analogWrite(10,100); //send a medium signal to this color light
analogWrite(11,0); //send no signal to this color light
}
Challenge: Create a sequence of light colors, first red, then blue, then green, then combination of colors like red and green. Remember to add a delay for each new color