Just posting demo code
var Layout = require("Layout"); var layout = new Layout( {type:"txt", font:"6x8", label:"Hello World"}); g.clear(); layout.render();
is causing the error
*'Uncaught Error: Function "setUI" not found! at line 1 col 223 ...lazy=c.lazy||!1;var b;if(Bangle.setUI(),process.env.HWVERSION!=2){...
^
in function "Layout" called from line 2 col 71 ..."6x8", label:"Hello World"});
Uncaught Error: Cannot read property 'render' of undefined at line 4 col 7 layout.render();'*
Ram and storage, Bangle 1
@user139578 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.
Just posting demo code
is causing the error
*'Uncaught Error: Function "setUI" not found!
at line 1 col 223
...lazy=c.lazy||!1;var b;if(Bangle.setUI(),process.env.HWVERSION!=2){...
in function "Layout" called from line 2 col 71
..."6x8", label:"Hello World"});
Uncaught Error: Cannot read property 'render' of undefined
at line 4 col 7
layout.render();'*
Ram and storage, Bangle 1