Skip to content

Instantly share code, notes, and snippets.

@valdiney
Last active Mar 20, 2017
Embed
What would you like to do?
// 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