4 Commits

Author SHA1 Message Date
Jeff Curless
804d056f83 Add support to change the shutdown threshold.
The default value for shutdown is less than 5% of battery life left.
Once the system hits this value (or the one specified by the user) the
system will shutdown.

The soc_shutdown value can be changed to 0 to disable this feature, just
realise that the system will lose power and unsafely shutdown.

Also added install and remove functionality.
2025-11-01 17:12:22 -04:00
Jeff Curless
cafc3fbf2b Mostly working
Need to perform code cleanup, and make sure startup of the driver
contains everything it needs to properly verify the status of the
battery.

Could use code to get the voltage etc, however I don't see that code in
the argon40 python stuff so I'd have to investigate the I2C device.
2025-10-06 19:55:49 -04:00
Jeff Curless
3a2c8cbe49 Try to see what requests are being made...
:
2025-10-05 17:04:07 -04:00
Jeff Curless
512929ec79 Add an install and remove script 2025-10-05 13:54:59 -04:00