Created
July 20, 2015 10:27
-
-
Save joaohcrangel/9b7e5c54b1d27a130821 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 numPin = 13; //número do pino digital no qual LED está conectado | |
void setup() { | |
pinMode(numPin, OUTPUT); //declara o pino digital como saída | |
} | |
void loop() { | |
digitalWrite(numPin, HIGH); //HIGH, liga o LED | |
delay(1000); //espera um segundo para dar continuidade | |
digitalWrite(numPin, LOW); //LOW, desliga o LED | |
delay(1000); //espera um segundo novamente | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment