I got a problem with the Numerals app I can't explain. Occasionally it just stops updating the time at all. I finally had the oppportunity to right then connect it to the Web IDE.
I get the following errors when the lcdPower-on event fires:
Uncaught Error: Cannot read property 'setColor' of undefined
at line 1 col 349
...undefined)drawFunc=drawFuncs.fill;g.clearRect(0,24,240,240);drawNum(...
^
in function "draw" called from line 1 col 76
...andom()*_hCol.length);draw();setUpdateInt(1);}else setUpdateInt(...
^
in function called from system
at line 1 col 2
g.reset();
^
in function "draw" called from line 2 col 26
WIDGETS["ram"].draw();
^
in function called from system
at line 14 col 4
g.setColor(-1);
^
in function "draw" called from line 2 col 30
else WIDGETS["batpc"].draw();
^
in function "update" called from line 2 col 11
update();
^
in function called from system
Is the draw function from the numerals app somehow conflicting with the draw methods from the widgets? It worked fine before, not sure when it stopped working reliably.
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.
Hi all,
I got a problem with the Numerals app I can't explain. Occasionally it just stops updating the time at all. I finally had the oppportunity to right then connect it to the Web IDE.
I get the following errors when the lcdPower-on event fires:
Is the draw function from the numerals app somehow conflicting with the draw methods from the widgets? It worked fine before, not sure when it stopped working reliably.