Created
October 8, 2019 21:16
-
-
Save l337quez/0ab53d32c19e18a1e90b06004dab06dc to your computer and use it in GitHub Desktop.
usar digitaWrite en NodeMCU ESP8266
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
// Importante, debemos declarar el pin como entrada o salida | |
void setup() { | |
// prepare GPIO2 = D0... ver el esquematico de los pines | |
pinMode(16, OUTPUT); | |
digitalWrite(16, 0); | |
} | |
void loop() { | |
digitalWrite(16, 1); | |
delay(1000); | |
digitalWrite(16, 0); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment