Hi Gordon, I create a .splash file into storage area with the simple code below:
g.clear();
g.setFontVector(40);
g.setColor(1,0,0);
g.drawString("Hello",0,0); // 40px high in red
g.setFontVector(40);
g.setColor(0,1,0);
g.drawString("World",40,40); // 40px high in green
Image is only shown when I upload the code. After a reboot nothing is shown.
I get the follow error below:
Uncaught Error: Expecting first argument to a valid Image
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.
Hi Gordon, I create a .splash file into storage area with the simple code below:
g.clear();
g.setFontVector(40);
g.setColor(1,0,0);
g.drawString("Hello",0,0); // 40px high in red
g.setFontVector(40);
g.setColor(0,1,0);
g.drawString("World",40,40); // 40px high in green
Image is only shown when I upload the code. After a reboot nothing is shown.
I get the follow error below:
Uncaught Error: Expecting first argument to a valid Image