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.38k stars 206 forks source link

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

Closed jakkra closed 4 months ago

jakkra commented 4 months 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