If a widget fails to define it's draw function, following error will be logged
Yes, that's because widgets are intended to be drawn. You can always add code in appname.boot.js if you want it to run at
I guess one solution would be to just overwrite the draw functions: Object.keys(WIDGETS).forEach(id=>WIDGETSÂ[id].draw=function(){})
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.
Yes, that's because widgets are intended to be drawn. You can always add code in
appname.boot.js
if you want it to run atI guess one solution would be to just overwrite the draw functions:
Object.keys(WIDGETS).forEach(id=>WIDGETSÂ[id].draw=function(){})