Oh, good to know about that last manual conversion/upload thing. And I actually haven't had a chance to test any of this on the physical js1 yet since I can't seem to find the charging cable.
I did move all the hands to base64, but yeah the larger face images in base64 crashed the emulation.
So for the larger images, if I declare them as global variables outside of the function, would I be better off declaring that variable as var image = require("Storage").read("image.img");
or var image = atob("FrrCAP//Gq657wAA...AAAAA==")
or does it matter at that point since either way it's in RAM?
Or is it in RAM? We had previously discussed elsewhere that
"if you store the background image as a file (uncompressed), drawImage
can draw that file directly without ever loading it into RAM"
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.
Oh, good to know about that last manual conversion/upload thing. And I actually haven't had a chance to test any of this on the physical js1 yet since I can't seem to find the charging cable.
I did move all the hands to base64, but yeah the larger face images in base64 crashed the emulation.
So for the larger images, if I declare them as global variables outside of the function, would I be better off declaring that variable as
var image = require("Storage").read("image.img");
or
var image = atob("FrrCAP//Gq657wAA...AAAAA==")
or does it matter at that point since either way it's in RAM?
Or is it in RAM? We had previously discussed elsewhere that
Does that hold true for the global variables?