what does "setNew interpreter error: LOW_MEMORY,MEMORY" mean? #5936
Replies: 1 comment
-
Posted at 2018-06-02 by Wilberforce I think you are expecting your What you have written is basically this:
So it is looping forever toggling the state of the pins. It is also adding new timeouts, faster than they can be executed. The timeout calls are a callback. This means that To achieve what you want - you will need to chain calls so that the next action occurs in a call back - not directly. I hope this helps. Posted at 2018-06-04 by @gfwilliams As @wilberforce says... Just to clarify though
The code you actually want (using timeouts as intended) is probably:
Note that when you do it that way, you're actually able to do execute other code in the background as well, because you're not completely stopping execution. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-06-02 by BootySnorkeler
Title says all.
I keep getting errors that say "setNew interpreter error: LOW_MEMORY,MEMORY."
I'm assuming it means my Espruino Pico is out of RAM but then again, my code is only 13 lines.
Please help!
Beta Was this translation helpful? Give feedback.
All reactions