Thank you for your feedback.
The widget is displayed, only the GB events seem not to arrive.
As an app the code works as well (without the widget-specific code, of course).
Generally, the code (especially GB) should work as a widget?
When running in RAM print(GB) (in the left side of the IDE) displayed the correct method (from the code above).
When running in storage another method is displayed.
I have no idea why this is happening.
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.
Thank you for your feedback.
The widget is displayed, only the GB events seem not to arrive.
As an app the code works as well (without the widget-specific code, of course).
Generally, the code (especially GB) should work as a widget?
When running in RAM print(GB) (in the left side of the IDE) displayed the correct method (from the code above).
When running in storage another method is displayed.
I have no idea why this is happening.