const int ledVermelho = 11;
const int ledAmarelo = 10;
const int ledVerde = 9;
void piscaLed(int led, int espera){
digitalWrite(led, HIGH);
delay(espera);
digitalWrite(led, LOW);
}
void setup() {
pinMode(ledVermelho, OUTPUT);
pinMode(ledAmarelo, OUTPUT);
pinMode(ledVerde, OUTPUT);
}
void loop() {
piscaLed(ledVermelho, 1000);
piscaLed(ledAmarelo, 500);
piscaLed(ledVerde, 2000);
}