Flashing lights example try 4 not working #189
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 1 comment
-
Posted at 2014-01-23 by @gfwilliams 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 :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-01-22 by nglod
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!
Beta Was this translation helpful? Give feedback.
All reactions