Search found 1 match
- Sun Feb 11, 2024 10:42 am
- Forum: ESP8266
- Topic: Esp8266 2-pin button not working correctly
- Replies: 1
- Views: 2518
Esp8266 2-pin button not working correctly
Hi guys i have one of those 2 pin buttons and im trying to connect it to my nodemcu 8266, using this code: //in setup: pinMode(16, INPUT_PULLUP); // in update: int but1 = digitalRead(16); if(but1 == HIGH){ }else{ Serial.print("BUTTON Low"); } when i press the button once it goes from HIGH to LOW and...