Layout Error, Function "setUI" not found!

Posted on
  • 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.HWVERSIO­N!=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

  • Hi,

    What firmware version is on your Bangle.js 1? And have you updated any of the apps since you go it?

    If the bootloader app is up to date (or your Bangle firmware is 2v11 or later) then I believe that should provide the setUI function for you.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Layout Error, Function "setUI" not found!

Posted by Avatar for user139578 @user139578

Actions