I want to draw lines of varying width and attach my test app. This runs fine in the emulator up to at least 100 iterations (see line 34), although it is slow. On my watch , however, it breaks while drawing the fourth line and the console shows:
0
1
2
3
Execution Interrupted
at line 1 col 237
...0,y0);e2=err;x2=x0;if(2*e2>=-dx){for(e2+=dy,y2=y0;e2<ed*wd&&(y1!=y2...
^
in function "drawLineWidth" called from line 3 col 38
drawLineWidth(i*20,0,i*20+100,175,i);
^
Process.memory() shows usage pretty steady at about 250 with 11750 free so if there is a memory leak I'm not seeing it.
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.
I want to draw lines of varying width and attach my test app. This runs fine in the emulator up to at least 100 iterations (see line 34), although it is slow. On my watch , however, it breaks while drawing the fourth line and the console shows:
Process.memory() shows usage pretty steady at about 250 with 11750 free so if there is a memory leak I'm not seeing it.
Any ideas how I can fix this? Thanks.
1 Attachment