long inicio;
void setup() {
// put your setup code here, to run once:
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
inicio= millis();
Serial.begin(9600);// sisgnifica que a porta vai receber algum tipo de informação
}
void loop() {
// put your main code here, to run repeatedly:
if (millis() - inicio < 3000){
digitalWrite(11,LOW);
digitalWrite(13, HIGH);
}
if (millis() - inicio >= 3000 && millis() - inicio < 7000){
digitalWrite(13,LOW);
digitalWrite(12, HIGH);
}
if (millis() - inicio > 7000){
digitalWrite(12,LOW);
digitalWrite(11, HIGH);
}
if (millis() - inicio > 8000){
inicio = millis();
}
}