Difference between revisions of "T208-Software"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{GD Template Impl}} | {{GD Template Impl}} | ||
− | + | 1. Update software source on Ubuntu | |
− | + | 2. To install pip for Python 3 on Ubuntu, run the following commands as root or sudo user in your terminal: | |
+ | sudo apt-get update | ||
+ | sudo apt-get install python-pip | ||
+ | 3. To install Jetson GPIO library: | ||
+ | sudo pip install Jetson.GPIO | ||
+ | 4. To install I2C dev library | ||
+ | sudo apt-get install libi2c-dev i2c-tools | ||
+ | pip install smbus | ||
+ | 5. To check what i2c devices connected | ||
+ | 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 python file with the code sample below - For i2c battery voltage & percentage reading | ||
+ | sudo nano t208bat.py | ||
− | |||
− | |||
− | |||
Revision as of 14:09, 10 August 2020
1. Update software source on Ubuntu
2. To install pip for Python 3 on Ubuntu, run the following commands as root or sudo user in your terminal:
sudo apt-get update sudo apt-get install python-pip
3. To install Jetson GPIO library:
sudo pip install Jetson.GPIO
4. To install I2C dev library
sudo apt-get install libi2c-dev i2c-tools pip install smbus
5. To check what i2c devices connected
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 python file with the code sample below - For i2c battery voltage & percentage reading
sudo nano t208bat.py
Return to T208
Enable comment auto-refresher
Anonymous user #2
Permalink |
Lisa
Anonymous user #1
Permalink |
Lisa