Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By timathis
#36970 Did not seem to find this specific problem using forum search.

I have tried this with arduino ide 1-6-5 and 1-6-7.

Using nodemcu 1.0 and windows 7 64 bit

Using the following sketch instructions

const int buttonPin = 16;
pinMode(buttonPin,INPUT_PULLDOWN);


Gives this error when compiled:

'INPUT_PULLDOWN' was not declared in this scope

Don't understand the compiling error.
User avatar
By timathis
#37001 Thanks!

The reference on the 8266 says:

Digital pins 0—15 can be INPUT, OUTPUT, or INPUT_PULLUP. Pin 16 can be INPUT, OUTPUT or INPUT_PULLDOWN. At startup, pins are configured as INPUT.

Doesn't really clarify the INPUT_PULLDOWN_16 construction.