All properties/functions of a widget are globally available as WIDGETS.widgetname.property, for example my widget has function setClockError which is available as WIDGETS.adjust.setClockError(x).
The reason is that certain processes should not be interrupted when the user presses the button to go to the setting screen.
All widgets are stopped and restarted when user goes to settings screen, just like when user changes to any other app. (Settings is just one of the apps.)
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.
All properties/functions of a widget are globally available as
WIDGETS.widgetname.property
, for example my widget has functionsetClockError
which is available asWIDGETS.adjust.setClockError(x)
.All widgets are stopped and restarted when user goes to settings screen, just like when user changes to any other app. (Settings is just one of the apps.)