Current Lua downloadable firmware will be posted here

User avatar
By jamief
#66441 I've got a V1 NODEMCU it says Amica on the bottom. I've made a simple script in arduino ide to read the temperatures from a one-wire ds18b20 using D4 as the sensor pin works just fine. I can also use 2 as the sensor pin as D4 is just a mapping of gpio pin 2. The issue is if I try any other pin. Specifically D2 is the one I'm wanting to make work. If I do that using D2 or 4 for the pin the script just acts like it's got nothing attached. THis happens for every pin except D4.

Tutorials online show D2 as being perfectly fine with nothing special in the code for this purpose. THere is nothing special to the wiring switching from D4 to D2. I'm thinking this is either a dead/dying board or a firmware issue.

Does anyone have any suggestions? Can anyone point me to where to flash the nodemcu back to stock in the even that I somehow screwed that up? I found the cloud flash builder but I'm not sure what all needs included to flash it to it's original state.

Thanks
User avatar
By jamief
#66447 I made a breakthrough. It has something to do with the version of the oneWire library. 2.3.3, 2.3.2 and 2.3.1 all don't work but 2.3.0 works just fine. The onewire library code is beyond my quick glance abilities so I've filed a bug report.