I/O pin names bug
Posted: Fri Oct 21, 2016 3:22 pm
So I found this small bug.
Maybe it has already been adressed but I just stumbled upon it.
[EDIT]
This bug occurs when programming the NodeMCU. I have not (yet) tested it on the WEMOS D1 (and mini D1)
Normally to put an I/O pin in the HIGH status I use:
This works for D0 to D7.
However for D8 till D10 this does not work.
So the code:
Does not work.
There is a workaround and that is to adress the pin names different:
This way you can adress all 10 I/O pins.
It would however be nice if we could use the names D0 to D10 for using all 11 I/O pins.
Luc
Maybe it has already been adressed but I just stumbled upon it.
[EDIT]
This bug occurs when programming the NodeMCU. I have not (yet) tested it on the WEMOS D1 (and mini D1)
Normally to put an I/O pin in the HIGH status I use:
Code: Select all
io(po,D1,1)
This works for D0 to D7.
However for D8 till D10 this does not work.
So the code:
Code: Select all
io(po,D10,1)
Does not work.
There is a workaround and that is to adress the pin names different:
Code: Select all
io(po,15,1) ' use this for D8
io(po,3,1) ' use this for D9
io(po,1,1) ' use this for D10
This way you can adress all 10 I/O pins.
It would however be nice if we could use the names D0 to D10 for using all 11 I/O pins.
Luc