Using ESP-11 and BASIC ver 2.0.18.
DHT11 connected to GPIO2.
This program crashes at the dht.setup line.
Any clues/suggestions please?
memclear
cls
' *************************crashes if next line present:-
dht.setup(11,2)
button "Temperature" [gettemp]
button "Exit " [Exit]
wprint "<br>"
wprint "<br>"
wprint "CurrTemp="
curr=0
wprint htmlvar(curr)
wait
[gettemp]
curr=dht.temp
wait
[Exit]
wprint "<br>"
wprint "<br>"
wprint "<a href='/'>Menu</a>"
end
The serial output has this:-
Exception (28):
epc1=0x40223f3e epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
ctx: cont
sp: 3fff2340 end: 3fff2ac0 offset: 01a0
>>>stack>>>
3fff24e0: 40106fa0 00000002 3fff2510 4022418c
3fff24f0: 3fff6148 3fff25b0 0000000b 40223f6c
3fff2500: 00000000 3fff25b0 00000002 4020e4b4
3fff2510: 00000000 00000000 00000000 3fff5ee8
3fff2520: 0000000f 00000006 402194ec 3fff1aa0
etc etc