var img = eval(require("Storage").read("testimg.img"));
g.drawImage(img);
and use eval it works for smallish images, but when it hits memory error it stops working.
I'm just copying pasting the javascript code from the Image+Converter site, then deleting var img = .
like :
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.
if i do :
and use
eval
it works for smallish images, but when it hits memory error it stops working.I'm just copying pasting the javascript code from the Image+Converter site, then deleting var img = .
like :