Most recent activity
-
-
Hi Martin,
check this out: http://forum.espruino.com/conversations/365203/#comment16079255-Maxi
-
-
https://github.com/espruino/EspruinoWebIDE/pull/254 ;)
not sure if you approve
async functions
ordestructuring
or any of the other stuff I used. Disclaimer: it's not very thoroughly tested. -
Hi Everyone,
is it correct and intended thatsetTimeout
prevents the screen to turn off, whilesetInterval
isn't?
Also there is an error in the API Reference ofsetTimeout
(http://www.espruino.com/Reference#l__global_setTimeout)If you want to stop the function from being called, pass the number that was returned by setTimeout into the clearInterval function.
I think the function
clearTimeout
is meant here. Also if my statement above is correct it would be nice to have it documented :)
There is no example code^^ The question boils down to this: If I use the
doublebuffered
mode, can I get a reference to the buffer that is currenty visible (a.k.a. the buffer that got drawn after callingg.flip()
in order to access it's contents (and then copy it to the other buffer to avoid redrawing identical parts).