-
• #2
Hi!
Yes, you'll probably want to use the
load()
function.There's also the
Bangle.load()
function,eval()
andrequire()
- depending on how you want to go about it. -
• #3
Yes, it is - it's done for a few widgets.
widclose
looks like a great, simple example: https://github.com/espruino/BangleApps/blob/master/apps/widclose/widget.jsThat one is neat because it turns off when running in a clock, so you could reverse the logic so it only runs when in a clock if you wanted.
Also where it says
load()
just doload("youapp.app.js")
instead and you're sorted
I have a small widget that runs in the top left of a clock, and I'm wondering if it's possible to launch a companion app by touching the widget?
I'm a semi-coder, but am new to Espruino/Bangle work.
Thanks,
Seth