jakkra / ZSWatch

ZSWatch - the Open Source Zephyrâ„¢ based Smartwatch, including both HW and FW.
https://forms.gle/G48Sm5zDe9aCaYtT9
GNU General Public License v3.0
2.26k stars 191 forks source link

nPM1300 ship mode/power down mode and battery cutoff. #307

Closed jakkra closed 1 month ago

jakkra commented 1 month ago

nPM1300: Fuel Guage: Fix missed changed in the fuel guage API since NCS 2.6

nPM1300: Fuel Guage: Support enter ship mode and battery cutoff Ship mode turns off all power and enters lowest possible state. To exit ship mode BTN 3 needs to be pressed.

Added safety for battery to enter ship mode when the battery is low voltage, but not low enough to trigger the battery protection circuit (typically at 3.0V).

TODO: Test the voltage cutoff actually works