I never saw that behavior I described, with the console hanging at echo(0); and needing ctl+c to get the console to work, before trying with this version.
Just happened with the new build, never seemed happen before.
Edit - Oh, I think I see what's happening here - it's not showing anything returned until it's done sending entirely, and I started having problems with lost characters last night, and had to turn on the throttling. Sorry about that. I feel like I remember it showing output from the espruino while sending code with throttling....
I've left it running my control panel code whole I'm at work.
(Also, I seem to have screwed up on the pcd8544 driver - it works better, but still walks two pixels every time the screen is refreshed, I'll try again tonight, and see if I can get it to both not cut off the first two bytes and to refresh correctly)
edit:
Came home to this:
=undefined
ERROR: Out of Memory!
WARNING: Out of memory while appending to array
at line 1 col 104
{pinMode(dht.pin,'input_pullup');dht.watch=setWatch(function(t) {dht.onwatch(t);},dht.pin,{repeat:true});}
^
in function called from system
Execution Interrupted during event processing.
ERROR: Unknown Watch
ERROR: Out of Memory!
ERROR: Out of Memory!
WARNING: Unable to create string as not enough memory
ERROR: Got INT expected ')' at line 8 col 135
setTimeout(function() {pinMode(dht.pin,'input_pullup');dht.watch=setWatch(function(t) {dht.onwatch(t);},dht.pin,{repeat:true});},5);
^
at line 8 col 134
setTimeout(function() {pinMode(dht.pin,'input_pullup');dht.watch=setWatch(function(t) {dht.onwatch(t);},dht.pin,{repeat:true});},5);
^
in function "read" called from line 6 col 33
in function "onread" called from line 1 col 26
in function called from system
Execution Interrupted during event processing.
ERROR: Out of Memory!
ERROR: Out of Memory!
WARNING: Unable to create string as not enough memory
ERROR: Out of Memory!
ERROR: Out of Memory!
WARNING: Unable to create string as not enough memory
ERROR: Out of Memory!
WARNING: Unable to create string as not enough memory
ERROR: Out of Memory!
WARNING: Out of memory while appending to array
ERROR: Out of Memory!
at line 9 col 58
setTimeout(function() {dht.onread(dht.endRead());},50);
^
in function "read" called from line 1 col 38
ERROR: Error processing interval - removing it.
Execution Interrupted during event processing.
ERROR: Out of Memory!
at line 7 col 63
spi.send(new Uint8Array(this.buffer,i*84,84+2*(i<5)), ce);
^
in function "flip" called from line 31 col 12
in function "uplcd" called from line 1 col 8
in function called from system
ERROR: Error processing interval - removing it.
Execution Interrupted during event processing.
ERROR: Out of Memory!
at line 2 col 41
g.setFontCustom(font, 32, widths, 12);
^
in function "setFont8x12" called from line 24 col 23
in function "uplcd" called from line 12 col 15
in function "onKey" called from line 1 col 9
in function "callback" called from line 8 col 27
in function called from system
ERROR: Out of Memory!
ERROR: Invalid height
at line 2 col 41
g.setFontCustom(font, 32, widths, 12);
^
in function "setFont8x12" called from line 3 col 19
in function "uplcd" called from line 12 col 15
in function "onKey" called from line 1 col 9
in function "callback" called from line 8 col 27
in function called from system
ERROR: Error processing Watch - removing it.
Execution Interrupted during event processing.
ERROR: Out of Memory!
ERROR: Invalid height
at line 2 col 41
g.setFontCustom(font, 32, widths, 12);
^
in function "setFont8x12" called from line 3 col 19
in function "uplcd" called from line 12 col 15
in function "onKey" called from line 1 col 9
in function "callback" called from line 8 col 27
in function called from system
ERROR: Error processing Watch - removing it.
Execution Interrupted during event processing.
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 never saw that behavior I described, with the console hanging at echo(0); and needing ctl+c to get the console to work, before trying with this version.
Just happened with the new build, never seemed happen before.
Edit - Oh, I think I see what's happening here - it's not showing anything returned until it's done sending entirely, and I started having problems with lost characters last night, and had to turn on the throttling. Sorry about that. I feel like I remember it showing output from the espruino while sending code with throttling....
I've left it running my control panel code whole I'm at work.
(Also, I seem to have screwed up on the pcd8544 driver - it works better, but still walks two pixels every time the screen is refreshed, I'll try again tonight, and see if I can get it to both not cut off the first two bytes and to refresh correctly)
edit:
Came home to this: