I imagine it could be an ESP8266 board, with an old version of Espruino?
Newer versions shouldn't need you to call pinMode
@DrAzzy thanks for the tip it has worked when I called the pinMode beforehand.
Hi @Gordon, it seems also newer versions need pinMode call because I have a nodeMCU ESP-12E with espruino_1v85
Ahh, ok, thanks - I need to release a new version then. There are 'nightly' builds which most people use it seems, and I think those have it fixed.
@Filip (post #24), you just go lucky... it is still a bad idea to start timers in the root level / level 0... you are saving the timer in the state it was (and luckily, @Gordon wrote the power-up of a saved state to restart the timers...). If your code is a bit more complicated, it may not even upload properly. (Sorry for the 'delayed' response).
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem