With ESP8266 I'm using D's when accessing pins, eg D3, D4 etc. But when I do a Nano sketch I have to use actual pin numbers 13,2 etc.
As the Nano board is marked with D's on the artwork, is there a way of using this preferred way.
Not using the Dn pin notation is the preferred and standard way. ESP8266 introduced this system purely as a workaround. You'll find that you can't even use the Dn pin notation for all the ESP8266 boards.
It is easier using the Dn notatin when the Nano is breadboarded, as you can read the Dn pin directly from the Nano board, without having to look up the pin number. I thought there may be a lib that defines the Dn to the pin number.
No need to look anything up. If you see Dn written on the Nano, you know the pin number is n.
I thought there may be a lib that defines the Dn to the pin number.
You can easily make one:
#define D0 0 #define D1 1 #define D2 2
... and so on, but it doesn't seem worth the trouble.
Tks for your help.