int redPin = 4;
int yellowPin = 5;
int greenPin = 6;
int purplePin = 3;
int whitePin = 2;
int bluePin = 8;
void setup() {
// put your setup code here, to run once:
pinMode (redPin,OUTPUT);
pinMode (yellowPin,OUTPUT);
pinMode (greenPin,OUTPUT);
pinMode (7,OUTPUT);
pinMode (purplePin, OUTPUT);
pinMode (whitePin, OUTPUT);
pinMode (bluePin, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite (redPin, HIGH);tone(7,300,100);
digitalWrite (yellowPin, LOW);
digitalWrite (greenPin ,LOW);
delay (500);
digitalWrite (redPin, LOW);
digitalWrite (yellowPin, LOW);
digitalWrite (greenPin, HIGH);
delay (500);
digitalWrite (redPin, LOW);
digitalWrite (yellowPin, HIGH);
digitalWrite (greenPin, LOW);
delay (500);
digitalWrite (purplePin, HIGH);
digitalWrite (whitePin, LOW);
digitalWrite (bluePin, LOW);
delay (500);
digitalWrite (purplePin, LOW);
digitalWrite (whitePin, HIGH);
digitalWrite (bluePin, LOW);
delay (500);
digitalWrite (purplePin, LOW);
digitalWrite (whitePin, LOW);
digitalWrite (bluePin, HIGH);
delay (500);
}