Inkplate 10 readBattery() voltage measurement and mapping

Customer:

According to the documentation at Inkplate Arduino — Inkplate docs documentation, where exactly is the battery voltage being read? Does it use any resistor divider? I’d like to program a percentage battery level based on voltage.

Originally submitted via email support on 4 April 2023. Migrated to the forum for community visibility.

Soldered Support:

You can measure the voltage and map the value in a range from 0 to 100 using Arduino’s built-in map function. For min and max values, you can use the typical max voltage for Li-ion batteries which is around 4.2 - 4.3V, and for min around 3.3V.