Is it possible to test whether an app is running in the IDE or on a real device (Bangle 2)? For example, E.getBattery() always returns zero in the IDE so it's hard to check if a low charge warning is needed. Thanks and sorry if I'm missing something obvious!
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.
Is it possible to test whether an app is running in the IDE or on a real device (Bangle 2)? For example, E.getBattery() always returns zero in the IDE so it's hard to check if a low charge warning is needed. Thanks and sorry if I'm missing something obvious!