NODEMCU Development Kit v2
Posted: Tue Jun 02, 2015 4:13 pm
Is there anyway in LUA to use the pin names from the Development Kit v2?
Like D0, D1, D2 instead of using 0 (GPIO16 D0), 1 (GPIO5 D1) 2 (GPIO4 D2)?
Could I map them with gpio = {[D0]=0,[D1=1,[D2]=2}
Do I have to? Seems stupid to not be able to use the labels.
Like D0, D1, D2 instead of using 0 (GPIO16 D0), 1 (GPIO5 D1) 2 (GPIO4 D2)?
Could I map them with gpio = {[D0]=0,[D1=1,[D2]=2}
Do I have to? Seems stupid to not be able to use the labels.