Why does this code cause a reboot?
Posted: Sun Nov 29, 2015 11:14 am
This code works:
But if I change the delays to 100k from 1M, it runs for a few seconds and then reboots.
Any ideas why?
Code: Select all
while 1 do
gpio.write(3, gpio.HIGH)
tmr.delay(1000000) -- wait 1,000,000 us = 1 second
gpio.write(3, gpio.LOW)
tmr.delay(1000000) -- wait 1,000,000 us = 1 second
end
But if I change the delays to 100k from 1M, it runs for a few seconds and then reboots.
Any ideas why?