-
-
Save viccarre/6084370 to your computer and use it in GitHub Desktop.
Lección 17 - Arduino - Utilizando Relevadores
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 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