greenbamboo 发表于 2018-12-17 21:42:31

树莓派驱动pca9685异常

我的报错 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: 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 到实际地址在网上有查实际地址的方法
页: [1]
查看完整版本: 树莓派驱动pca9685异常