Wondering if anyone knows for sure if the Wemos mini D1 has problems with pin assignments or other hardware issues in 8266basic.
I am getting strange results, where an esp board works fine.
The basic interpreter is running okay, just wont do a dht22 on pin 4 for instance, where the parts are known to be good.
**edit** I was using the wrong pin numbers.
on a d1 mini, pin4 is gpio2 and pin3 is gpio0 etc.
It works great once I fixed that.
This is Rotohammers thermostat code adapted for a wemos d1 mini and a dht22.
'WeMos D1 mini, dht22 and Relay shield
SERIALPRINTLN "restart page"
let curr = 0
let setp = 25
let stat = Off
Print "WeMos WiFi Thermostat "
Button "Setpoint", [refresh]
button "Exit", [quit]
timer 4000, [refresh]
SERIALPRINTLN "PIN 0 ON"
let stat = "On"
SERIALPRINTLN "PIN 0 OFF"
let stat = "Off"
curr = dht.temp()
if curr < setp then goto [on0] else goto [off0]
wprint "<a href='/'>Menu</a>"