sudo apt-get upgrade
sudo apt-get -y install python-smbus i2c-tools
2.1 Once you have logged into your Raspberry Pi from the command line, run the command to see all the connected devices
sudo i2cdetect -y 1
[[File:X728x-i2c.png]]
#36 - the address of the battery fuel gauging chip
#68 - the address of the RTC chip
#This is a hexadecimal number
#Different x728 versions may have different values
3. Download x728 setup scripts: