Battery percentage

Hi :slight_smile:

Is there a method to get the battery percentage as for the Puck.js (Espruino Hardware Reference)?

Thanks!
Tineler

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