const int a = D0; // the number of the LED pin
const int b = D1;
const int c = 25;
const int d = 26;
const int e = 27;
const int f = 4;
const int g = 5;
// variable for storing the pushbutton status
//int buttonState = 0;
void setup() {
Serial.begin(115200);
// initialize the pushbutton pin as an input
//pinMode(buttonPin, INPUT);
// initialize the LED pin as an output
pinMode(a, OUTPUT);
pinMode(b, OUTPUT);
pinMode(c, OUTPUT);
pinMode(d, OUTPUT);
pinMode(green, OUTPUT);
pinMode(yellow, OUTPUT);pinMode(red, OUTPUT);
pinMode(green, OUTPUT);
}
void loop() {
// read the state of the pushbutton value
// buttonState = digitalRead(buttonPin);
//Serial.println(buttonState);
// check if the pushbutton is pressed.
// if it is, the buttonState is HIGH
//if (buttonState == HIGH) {
// turn LED on
digitalWrite(red, HIGH);
digitalWrite(green, LOW);
digitalWrite(yellow, LOW);
Serial.println("RED");
delay(10000);
//} else {
// turn LED off
digitalWrite(red, LOW);
digitalWrite(green, HIGH);
digitalWrite(yellow, LOW);
Serial.println("GREEN");
delay(10000);
digitalWrite(red, LOW);
digitalWrite(green, LOW);
digitalWrite(yellow, HIGH);
Serial.println("YELLOW");
delay(3000);
}