Open main menu

Changes

X708-Software

485 bytes added, 15:45, 21 July 2021
== For Ubuntu==
Base ubuntu-mate-20.04.1-desktop-armhf+raspi.img
 
1. Enable I2C
 
2. update & upgrade
sudo apt update
sudo apt upgrade
 
3. Install necessary software
sudo apt install python3 python3-smbus python3-rpi.gpio -y
 
4.Download x708 setup scripts:
git clone https://github.com/geekworm-com/x708.git
cd x708
chmod +x *.sh
sudo bash install-ubuntu.sh
 
5. How to reading battery voltage and percentage, this is the sample code, you can modify it by your request.
sudo python3 x708bat.py
 
Return to [[X708]]