• Some code for an example. If you define your widget as

    WIDGETS.mywidget = {
        area: ...,
        draw: ...,
        width: ...,
        someVariable: 123,
        someFunction: () => { ... },
      };
    

    Then in your clock, after calling Bangle.loadWidgets(), you can use WIDGETS.mywidget.someVariable and WIDGETS.mywidget.someFunction().

About

Avatar for malaire @malaire started