Changes

Jump to navigation Jump to search

T208-Software

488 bytes added, 16:12, 10 August 2020
no edit summary
sudo apt-get install libi2c-dev i2c-tools
pip install smbus
5. To check what i2c devices connected(This is very important!!) sudo i2cdetect -y -r 1 #(T208 used the I2C address 0x36)
6. To install Nano editor on Ubuntu
sudo apt-get install nano
7. Create a Download the sample python file with the code sample below - For ([[File:Bat.py]]) for i2c battery voltage & percentage reading, then run the following command to test it. sudo nano t208batpython Bat.py8. Download the sample python file ([[File:BatPld.py]]) for AC power loss / power adapter failure detection, then run the following command to test it. sudo python Pld.py
'''FAQ'''
A: Found some error
Q:
1. check your python version with command 'sudo python -v'
 
2. check the I2C if is enable with command 'sudo i2cdetect -y -r 1', you can found the result is 0x36
 
3. Configure the appropriate software source, or you can't update.
Return to [[T208]]

Navigation menu