#define LED_R_PIN 13
#define LED_G_PIN 14
#define LED_Y_PIN 15
void setup() {
// put your setup code here, to run once:
pinMode(LED_Y_PIN, OUTPUT);
pinMode(LED_G_PIN, OUTPUT);
pinMode(LED_R_PIN, OUTPUT);
Serial.begin(115200);
Serial.println("Começando!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10);
Serial.println("amarelo");
digitalWrite(LED_Y_PIN, HIGH);
delay(7000);
digitalWrite(LED_Y_PIN, LOW);
delay(500);
Serial.println("verde");
digitalWrite(LED_G_PIN, HIGH);
delay(5000);
digitalWrite(LED_G_PIN, LOW);
delay(300);
Serial.println("vermelho");
digitalWrite(LED_R_PIN, HIGH);
delay(7000);
digitalWrite(LED_R_PIN, LOW);
delay(400);
}