IOsens wrote:This does not seem to the right forum
Not sure, the (sub)title of the forum is "Post your best Lua script examples here".
Explore... Chat... Share...
IOsens wrote:This does not seem to the right forum
dly = 500
ledPin = 4
gpio.mode(ledPin,gpio.OUTPUT)
ledState = 0
tmr.alarm( 0, dly, 1, function()
ledState = 1 - ledState;
gpio.write(ledPin, ledState)
print(ledState)
-- tmr.stop(0)
end)
tmr.stop(0)
tmr.start(0)
tmr.alarm( 0, dly, 2, function() ....
mytimer = tmr.create()
mytimer:register(5000, tmr.ALARM_SINGLE, function()
print("hey there")
end)
mytimer:start()
IOsens wrote:-> attempt to call field 'create' (a nil value)
OK, It's about 2 years ago, I've posted here about[…]
I run the Espressif supplied tools on the files to[…]
Since anything you ever want is on the Internet, I[…]
Once the command prompt’s black window appears, ty[…]
hi, tochange the interval I told you to change th[…]
I have a project ( A PID temperature controller) t[…]
https://www.esp8266.com/viewtopic.php?p=73027#p730[…]
so which compiler do you use? ... ;-) Apart from[…]
Hi, I didn't go through with the examples which Ma[…]
Follow US on Twitter and get ESP8266 news and updates first.