I’m wondering if there’s a straightforward way to get access to the current voltage from the LIPO JST connector on an Artemis Nano within an arduino program. I see VBATT in the schematic but I don’t know how to access that within an arduino program. Basically, I’d like to implement some kind of feedback as to the charge level of my LIPO so that I know when to connect to USB power to charge.
I’ve looked through the source for variant.h/cpp and the “board support package” source looking for anything alluding to VIN or VBATT but no luck.
Thanks.