You are oh so close! Just needed to show the 2nd driver:
sketch would be simple - I didn't compile this, just writing from scratch, should be pretty close
// define pins used
byte red = 11;
byte blue = 12;
byte on_off_pin = 10;
byte button_state = 1;
void setup(){
// define how the pins are used
pinMode (red, OUTPUT);
pinMode (blue, OUTPUT);
pinMode (on_off_pin, INPUT);
digitalWrite (red, LOW);
digitalWrite (blue, LOW);
digitalWrite (on_off, HIGH); // turns on internal pullup resister
}
void loop()
button_state = digitalRead (on_off_pin);
if (button_state == 1){ //button normally open, 1 - lights are off)
// do nothing
}
if (button_state == 0){ // button is closed, input is low
digitalWrite (red, HIGH); // turn on red lights
delay (500); // on for 1/2 second
digitalWrite (red, LOW); // red lights off
delay (100); // gives a chance adjust?
digitalWrite (blue, HIGH); // turn on lblue lights
delay (500); // on for 1/2 second
digitalWrite (blue, LOW); // blue lights off
delay (100); // gives a chance adjust?
} // end of read button state
} // end of void loop