// constants (or #define with no ; at end of line) won't change. They're used here to set pin numbers:
int redLED = 10;
int greenLED = 9;
int blueLED = 8;
String myColour;
String msg="What colour LED? ";
int delayTime = 500;
// Variables will change:
void setup() {
pinMode (redLED, OUTPUT);
pinMode (greenLED, OUTPUT);
pinMode (blueLED, OUTPUT);
Serial.begin(9600);
}
void loop() {
Serial.println(msg);
digitalWrite(redLED,HIGH);
digitalWrite(greenLED,HIGH);
digitalWrite(blueLED,HIGH);
delay(delayTime);
digitalWrite(redLED,LOW);
digitalWrite(greenLED,LOW);
digitalWrite(blueLED,LOW);
delay(delayTime);
}