Wemos D1 pins

pert:
The WeMos D1 and some other ESP8266 boards are a bit different than other Arduino boards in that their pin numbers refer to the GPIO numbers but the labels you see on the silkscreen don't match the GPIO numbers (I guess because the board layout would have made the numbering non-consectutive). The solution is to simply use the Dn notation, just as written on the silkscreen, to refer to the pins. For example:

#define ONE_WIRE_BUS D3
digitalWrite(D2, HIGH);

Thanks pert! I will try to write the code in that way.

1 Like