#define vermelho 13
#define amarelo 11
#define verde 12
void setup() {
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(12, OUTPUT);
}
void loop() {
digitalWrite(verde, HIGH); // turn the LED on (HIGH is the voltage level)
delay(4000); // wait for a second
digitalWrite(verde, LOW); // turn the LED off by making the voltage LOW
digitalWrite(amarelo, HIGH); // turn the LED on (HIGH is the voltage level)
delay(2000); // wait for a second
digitalWrite(amarelo, LOW); // turn the LED off by making the voltage LOW
digitalWrite(vermelho, HIGH); // turn the LED on (HIGH is the voltage level)
delay(4000); // wait for a second
digitalWrite(vermelho, LOW); // turn the LED off by making the voltage LOW
//
}
/*
Gnd conectado ao resistor, negativo dos leds conectados na coluna do gnd
positivo conectado nas portas do arduino(ex: 12,13)
*/