Changes

Jump to navigation Jump to search

X708-Software

341 bytes removed, 18:58, 30 October 2020
no edit summary
sudo apt-get install i2c-tools
3. Download x728 x708 setup scripts: git clone https://github.com/geekworm-com/x728x708.git cd x728x708 sudo nano x728chmod +x x708.sh #because X708 doesn't support RTC function, so we need to remove or comment out (add # at the beginning of the line) the following 4 lines #X728 RTC setting up #sudo sed -i '$ i rtc-ds1307' /etc/modules #sudo sed -i '$ i echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device' /etc/rc.local #sudo sed -i '$ i hwclock -s' /etc/rc.local
4. Install script&reboot:
sudo bash x728x708.sh printf "%s\n" "alias x728offx708off='sudo x728softsdx708softsd.sh'" >> ~/.bashrc
sudo reboot
6. How to reading battery voltage and percentage, this is the sample code, you can modify it by your request.
sudo python x728batx708bat.py
7. Power How to power off command on Raspbian from software x728offx708off
8. Testing AC power off/loss or power adapter failure detection (need to shor the 'PLD' pin)
sudo python x728pldx708pld.py

Navigation menu