11 lines
398 B
Bash
11 lines
398 B
Bash
# Thanks to: https://www.pisugar.com/blogs/pisugar-blog/display-raspberry-pi-battery-indicator
|
|
|
|
|
|
sudo apt update
|
|
sudo apt install -y build-essential linux-headers-$(uname -r) git
|
|
git clone https://github.com/PiSugar/pisugar-power-manager-rs.git
|
|
cd pisugar-power-manager-rs/pisugar-module/pisugar-3
|
|
make
|
|
sudo make install
|
|
sudo insmod pisugar_3_battery.ko
|
|
echo Done... Reboot to make the changes work |