batt
batt copied to clipboard
Auto calibration support
Thanks for the neat and clean package.
It would be excellent to have a system where users can set an interval, let's say 7-days. Afterward, every 7 days, it will automatically charge up to 100 (no matter the limit define by user), then discharge to 15, and finally recharge to the user-defined limit.
The flow will be like.
- Keep track of the last calibration.
- Check if the last calibration was 7 days ago or more.
- If it's been more than 7 days, set the limit to 100%.
- When it reaches a 100% charge, disable the adapter.
- When it drops to 15%, enable the adapter.
- Set the limit to the user-defined value.
- Update the last calibration time.