The update method sounds good to me (I'm not sure if we could document that anywhere?). Or given the relatively few widgets that do this, we could just check in the draw method and then queue a call to drawWidgets if it changed?
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.
The
update
method sounds good to me (I'm not sure if we could document that anywhere?). Or given the relatively few widgets that do this, we could just check in thedraw
method and then queue a call todrawWidgets
if it changed?I seem to recall there are some widgets that do similar things already.
Using extra RAM is a bit of a shame on Bangle.js 1 but I guess it's not much - and actually adding an
update
method would be worse than the above