Open main menu

Changes

X728-Software

22 bytes added, 13:42, 21 April 2020
no edit summary
sudo reboot
2. Install necessary software (python and i2c tool library) sudo apt-get install python-smbus sudo apt-get install i2c-tools  3. Download x728 setup scripts:
git clone https://github.com/geekworm-com/x728.git
cd x728
 4. Install script&reboot:
sudo bash x728.sh
printf "%s\n" "alias x728off='sudo x728softsd.sh'" >> ~/.bashrc
sudo reboot
Install necessary software (python and i2c tool library) sudo apt-get install python-smbus sudo apt-get install i2c-tools  5. Set and Read the RTC time
#If you need to set the system time for any reason you can use the following command :
date -s "5 MAR 2019 13:00:00"
sudo hwclock -r
6. How to reading battery voltage and percentage, this is the sample code, you can modify it by your request.
sudo python x728bat.py
7. Power off command on Raspbian from software
x728off
8. Testing AC power off/loss or power adapter failure detection
sudo python x728pld.py