Skip to content

Instantly share code, notes, and snippets.

@joaohcrangel
Created July 20, 2015 10:27
Show Gist options
  • Save joaohcrangel/9b7e5c54b1d27a130821 to your computer and use it in GitHub Desktop.
Save joaohcrangel/9b7e5c54b1d27a130821 to your computer and use it in GitHub Desktop.
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