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

Moderator: igrr

User avatar
By schufti
#55872 I assume he is referring to the Wemos D1 (Uno size) board.

Unfortunately these boards (like nodemcu) use different pin names.

So most likely he wants to change mode of D8 [pinMode(D8, OUTPUT);] and not gpio8 [pinMode(8, OUTPUT);] ... provided the correct board is selected in general.
User avatar
By ateeb327
#83170 Hello, I was getting the same wdt reset error while trying to use pinMode with digitalWrite() function.
I solved it by figuring out how the Wemos Pin mapping works.
Actually, you need to refer the pin in 'Dx' notation.
e.g
Code: Select alldigitalWrite(D15,LOW);

or
Code: Select allpinMode(D15, OUTPUT);


Also, make sure to select "Wemos D1 R1" in Tools > Boards so that Dx constants will match
the labels.