树莓派论坛

 找回密码
 立即注册

树莓派驱动pca9685异常

greenbamboo 发表于 2018-12-17 21:42:31 | 显示全部楼层 |阅读模式
我的报错 Traceback (most recent call last):
  File "simpletest.py", line 17, in <module>
    pwm = Adafruit_PCA9685.PCA9685()
  File "/usr/local/lib/python2.7/dist-packages/Adafruit_PCA9685/PCA9685.py", line 81, in __init__
    self._device.write8(MODE1, mode1)
  File "/usr/local/lib/python2.7/dist-packages/Adafruit_GPIO/I2C.py", line 114, in write8
    self._bus.write_byte_data(self._address, register, value)
  File "/usr/local/lib/python2.7/dist-packages/Adafruit_PureIO/smbus.py", line 256, in write_byte_data
    self._device.write(data)
IOError: [Errno 121] Remote I/O error
什么原因求解
jackforever 发表于 2020-3-31 13:40:14 | 显示全部楼层
你要修改地址,打开报错位置的File "/usr/local/lib/python2.7/dist-packages/Adafruit_PCA9685/PCA9685.py", line 81, in __init__
    self._device.write8(MODE1, mode1),点一下修改address 到实际地址在网上有查实际地址的方法
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版 | Archiver | 树莓派论坛 ( 粤ICP备15075382号-1 )