暂无结果
5.3安装I2C工具
一、安装I2C工具
1.运行以下命令安装I2C工具
sudo apt install i2c-tools
2.测试I2C功能,扫描当前连接的I2C设备地址。
i2cdetect -y -r 1
上图中表示连接了1个I2C设备,其中0x15就是机械臂扩展板的I2C设备地址。
二、安装I2C-Python环境
1.安装pip3
sudo apt install python3-pip
2.安装smbus
sudo apt install python3-smbus
3.安装其他相关工具
sudo apt install build-essential python3-dev