Created
November 15, 2022 20:56
-
-
Save luizfranzon/ecbaffee48abda0d1e9b0d9ce60b943d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int segundosEntreMensagens = 2; | |
int interval = segundosEntreMensagens * 1000; | |
void setup() | |
{ | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
Serial.println("Verde - Pode passar!"); | |
delay(interval); | |
Serial.println("Amarelo - Alerta"); | |
delay(interval); | |
Serial.println("Vermelho - Pare! Espere ficar verde."); | |
delay(interval); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment