So you never actually tried it out to see if it was a percentage?
Is this the battery voltage of the local system?
Yes. It's the voltage on the nRF52 chip itself - in nearly all cases that's also the battery voltage. There's Puck.getBatteryPercentage - but that only works because we know it's a CR2032 battery in Puck.js. In other devices it'd be much more difficult to be sure.
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.
So you never actually tried it out to see if it was a percentage?
Yes. It's the voltage on the nRF52 chip itself - in nearly all cases that's also the battery voltage. There's
Puck.getBatteryPercentage
- but that only works because we know it's a CR2032 battery in Puck.js. In other devices it'd be much more difficult to be sure.