Skip to content

Instantly share code, notes, and snippets.

@logsol
logsol / battery_info.sh
Created April 29, 2017 11:56 — forked from Jooshboy/battery_info.sh
Gets battery status information from an AXP209 PMU via I2C
#!/bin/sh
# This program gets the battery info from PMU
# Voltage and current charging/discharging
#
# Nota : temperature can be more than real because of self heating
#######################################################################
# Copyright (c) 2014 by RzBo, Bellesserre, France
#
# Permission is granted to use the source code within this
# file in whole or in part for any use, personal or commercial,