There isn’t a way to get the voltage from the Inkplate 2 battery programmatically, as it would require a voltage divider, which just wouldn’t fit on the PCB. You can make your own voltage divider which would be connected to the positive pad of the battery and to a GPIO pin, you could then read the analog voltage value from it to get the battery state. This is how it is done on other models, and the code is available here: