- Sun May 28, 2017 4:06 pm
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.