I don't think drawWidgets itself does anything that is likely to hang (unless a widget itself calls drawWidgets?). The most likely culprit is one of the widgets you'd have loaded.
When it hangs, what happens if you press Ctrl-C? Can you break out of it? If so it should hopefully either pop into debug mode or give you a stack trace of where the issue is.
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.
I don't think
drawWidgets
itself does anything that is likely to hang (unless a widget itself calls drawWidgets?). The most likely culprit is one of the widgets you'd have loaded.When it hangs, what happens if you press Ctrl-C? Can you break out of it? If so it should hopefully either pop into debug mode or give you a stack trace of where the issue is.