-
• #2
Great, thanks for letting me know! I've just updated the code/documentation.
It's because Espruino used to remember the value of 'this' when setInterval was called (which I believe was wrong). I fixed that and forgot to change the docs :)
Great, thanks for letting me know! I've just updated the code/documentation.
It's because Espruino used to remember the value of 'this' when setInterval was called (which I believe was wrong). I fixed that and forgot to change the docs :)
Hello,
I just received my espruinos and started typing a few examples.
I have upgraded the firmware as explained in the quick start guide and I am following this tutorial: http://www.espruino.com/Flashing+Lights
The code under "try 4" is not working as expected:
On the console I can read "ERROR: Invalid pin!". There seems to be a problem handling "this", in fact the issue seems to be the same as in this other forum post: http://forum.espruino.com/conversations/389/
The code works fine with the following modification:
Just letting you know, I don't know this should be considered a bug in the code or in the documentation.
Thanks a lot!