Battery percentage


#1

Hi :slight_smile:

Is there a method to get the battery percentage as for the Puck.js (https://www.espruino.com/Reference#l_Puck_getBatteryPercentage)?

Thanks!
Tineler


#2

This works (but it returns voltage only):

https://www.espruino.com/Reference#l_NRF_getBattery

console.log(NRF.getBattery());

Correct me if it’s possible to use Puck’s class @otso