I2C Config
Enable I2C
Edit config.txt on SD Card, uncomment:
dtparam=i2c_arm=on
Then install diagnostic and python modules:
sudo apt-get install i2c-tools
Test I2C devices:
root@raspi-3-ptz:/# i2cdetect -y 0Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directoryroot@raspi-3-ptz:/# i2cdetect -y 10 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- 39 -- -- -- -- -- --40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --70: 70 -- -- -- -- -- -- --