Doing image string would really push that down further, since all the width : 26, height : 26, bpp : 1, would disappear.
image string
width : 26, height : 26, bpp : 1,
Actually please could you do:
function getImg(i) { var data = { "NewMoon": "AD8AAH/4AHwPgDwA8BwADg4AAcMAADHAAA5gAAGYAABsAAAPAAADwAAA8AAAPAAADwAAA2AAAZgAAGcAADjAAAw4AAcHAAOA8APAHwPgAf/gAA/AAA==" "WaxingCrescentNorth" : "..." ... }; return { width : 26, height : 26, bpp : 1, transparent : 0, buffer : E.toArrayBuffer(atob(data[i])) }; }
That would be way more compact, and would use massively less RAM because function code gets executed from Flash
Good hint, I worked it in and saved a lot of space and memory. The upload still fails and I cannot get the code small enough.
Two questions:
Thanks
@Gordon started
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.
Doing
image string
would really push that down further, since all thewidth : 26, height : 26, bpp : 1,
would disappear.Actually please could you do:
That would be way more compact, and would use massively less RAM because function code gets executed from Flash