Last active
March 20, 2017 14:10
-
-
Save valdiney/927726e1e9bbc4181e7b8977c6ae541e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Inicializa o Pino enviando pulso elétrico | |
void startPinLeed(int _pinMode) { | |
pinMode(_pinMode, OUTPUT); | |
} | |
/* | |
* blinkLeed | |
* int _pinMode: Numero do pino | |
* int _delay: Tempo de espera para ligar ou desligar o leed | |
*/ | |
void blinkLeed(int _pinMode, int _delay) { | |
digitalWrite(_pinMode, HIGH); | |
delay(_delay); | |
digitalWrite(_pinMode, LOW); | |
delay(_delay); | |
} | |
void setup() { | |
startPinLeed(12); | |
} | |
void loop() { | |
blinkLeed(12, 1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment