- flashed the latest firmware and got errors in the IDE saying there's no init.lua
- flashed the previous firmware and the board is now recognised by ESplorer (baud rate 9600)
- commands and snippets work fine but I cannot turn on or off any of the GPIOs
- when saving a script to the ESP, I get errors. Here's the blink example and the error:
pin=16
lighton=0
gpio.mode(pin,gpio.OUTPUT)
tmr.alarm(1,1000,1,function()
if lighton==0 then
lighton=1
gpio.write(pin,gpio.HIGH)
else
lighton=0
gpio.write(pin,gpio.LOW)
end
end)
file.close();
dofile("blink2.lua");
stdin:2: '<name>' expected near '='
What am I doing wrong? Thank you for you help in advance!