I am trying to use the internal pullup on various pins (D8 or D4 which correspond to GPIO15 GPIO2 respectively) without any success. I am modifying the standard Blink program to add the following line to setup()
alternatively I also tried instead to use this style of pullup:
Then in the loop() I add:
I'm expecting to see the input will read as a 1, but what I get is a set of zeros. If I connect something external to the input then I can make the input either a 1 or a 0 so it's working as an input. But the pullup is not working.
Googling I see discussions of, at one time, INPUT_PULLUP not working and then some fellow named zeroday fixing it so it did work. But all these discussions seemed to be about nodeLua so I don't know if they apply to programming in Ardunio IDE.
The Arduino website also says INPUT_PULLUP should work on the ESP8266
Anyhow I'm posting this in sept 2016. Surely this should be working??? all boards behave the same and all the pins i've tried act similarly. (I realize that GPIO 16 is special and I'm not trying that pin)
#define ESP8266_LED 2
Serial.println("loop de doop bb");