Interrupt crashing the esp8266
Posted: Mon Oct 03, 2016 3:48 pm
Hi folks
Before I complain about my problem, "Thanks for all the hard work on esp8266, nodemcu and elua." These things allow us mere mortals to tinker with toys
I am trying to raise an interrupt on falling edge. I will attach my schematic and the code. It does not matter whether I try to pull up, not pull up, use the "up" or "high" and give it 3v3 or use "down" or "low" and ground the pin, the nodemcu lua crashes. It reports the reset reason is wdt reset.
I also tried it on several different pins.
Any help?
Thanks
Before I complain about my problem, "Thanks for all the hard work on esp8266, nodemcu and elua." These things allow us mere mortals to tinker with toys
I am trying to raise an interrupt on falling edge. I will attach my schematic and the code. It does not matter whether I try to pull up, not pull up, use the "up" or "high" and give it 3v3 or use "down" or "low" and ground the pin, the nodemcu lua crashes. It reports the reset reason is wdt reset.
I also tried it on several different pins.
Any help?
Thanks
Code: Select all
ipin=12
last=tmr.now()
function intcb(level)
if tmr.now()>last+100 then
print("hi there")
end
return
end
gpio.mode(ipin,gpio.INT,gpio.PULLUP)
gpio.trig(ipin,"down",intcb)