Skip to content

Instantly share code, notes, and snippets.

@l337quez
Created October 8, 2019 21:16
Show Gist options
  • Save l337quez/0ab53d32c19e18a1e90b06004dab06dc to your computer and use it in GitHub Desktop.
Save l337quez/0ab53d32c19e18a1e90b06004dab06dc to your computer and use it in GitHub Desktop.
usar digitaWrite en NodeMCU ESP8266
// 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