Uh, I have some more bad news. This with 2200 variable Espruino image:
>reset();
=undefined
_____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|_____|___| _|_| |___|_|_|_|___|
|_| http://espruino.com
1v63 Copyright 2014 G.Williams
>echo(0);
ERROR: Too much recursion - the stack is about to overflow at line 1 col 11
{this.i2c.writeTo(119,b);return this.i2c.readFrom(119,1)[0]}
^
at line 1 col 11
{this.i2c.writeTo(119,b);return this.i2c.readFrom(11e,1)[0]}
^
in function "read8" called from
(after which the espruino froze).
This was with the latest desk lamp driver code - but the point is that the code works with the stock 1800 variable firmware, but gets this bizzaro error with 2200 variables. As far as I can tell, it got through loading a bunch of modules, but then when the time came for it to run the connect() method and actually use that code it had cached, it blows up....
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Uh, I have some more bad news. This with 2200 variable Espruino image:
(after which the espruino froze).
This was with the latest desk lamp driver code - but the point is that the code works with the stock 1800 variable firmware, but gets this bizzaro error with 2200 variables. As far as I can tell, it got through loading a bunch of modules, but then when the time came for it to run the connect() method and actually use that code it had cached, it blows up....
I'm becoming pessimistic...