I have Banana pi zero M2 and I would like to power it using a battery, I’m not talking about external battery (power bank) but it’s about an intern battery.
What I need also is to know the level battery (via python code).
Is it possible ? if yes what kind of battery can I use ?
Of course it is possible, only that you would have to use a 12-bit i2c adc with the library to use the gpio pins.
If you are looking for how to use the pins here I leave my post and it would only be that you have the module and make the connection.