Skip to content

Instantly share code, notes, and snippets.

@viccarre
Created July 25, 2013 22:31
Show Gist options
  • Save viccarre/6084370 to your computer and use it in GitHub Desktop.
Save viccarre/6084370 to your computer and use it in GitHub Desktop.
Lección 17 - Arduino - Utilizando Relevadores
int pinOut = 2;
void setup()
{
//configuramos el pin 2 como salida
pinMode (pinOut, OUTPUT);
}
void loop()
{
//Le mandamos la señal de HIGH a la salida del
//Arduino, la salida es el pin 2
digitalWrite (pinOut, HIGH);
//Hacemos un delay de 1 segundo
delay (1000);
digitalWrite (pinOut, LOW);
delay (1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment