QQ:3663724843
QQ:202004841
0755-88291180
13424403025
sales03@spotpear.cn
services04@spotpear.cn
微信: spotpear
微信: eng13434470212
电量I2C读取教程
1.使能I2C
sudo raspi-config
sudo reboot重启之后I2C使能
2. 下载程序,ups-lite.pywget http://spotpear.cn/public/uploads/picture/learn/raspberry-pi/rpi-expansion/ups-lite/ups-lite.py
3. 运行代码sudo chmod 777 ups-lite.py
sudo python ups-lite.py
ups-lite.py