bettr-xyz / tracesigma-firmware

Project TraceSigma aims to develop and release open-sourced code and reference designs of a portable, clip-on device with the aim to allow anyone internationally to build and deploy compatible self-contained tracing devices.
5 stars 3 forks source link

Implement AXP192 related HAL functions #5

Open fustilio opened 4 years ago

fustilio commented 4 years ago

Set battery parameters

fustilio commented 4 years ago

Existing implementation of maps 3.1V to 4.0V for 0-100% 3.2V (0x3C) corresponds to 11% stage 1 (0x68) triggers at 3.45V 39% stage 2 (0x5f) triggers at 3.40V 33%