@Spoony 我把屏幕卸了 只留了舵机扩展板 但仍然报错 已经麻木了 这是所有的报错语句 检测到的地址是40 我测试代码也是40 但从报错来看他找不到默认的IIC总线
Traceback (most recent call last):
File "/home/pi/opencv-python-work/5_servoCtrl/PCA9685_test.py", line 2, in <module>
pwm = Adafruit_PCA9685.PCA9685()
File "/usr/local/lib/python3.9/dist-packages/Adafruit_PCA9685/PCA9685.py", line 74, in __init__
self._device = i2c.get_i2c_device(address, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/Adafruit_GPIO/I2C.py", line 63, in get_i2c_device
busnum = get_default_bus()
File "/usr/local/lib/python3.9/dist-packages/Adafruit_GPIO/I2C.py", line 55, in get_default_bus
raise RuntimeError('Could not determine default I2C bus for platform.')
RuntimeError: Could not determine default I2C bus for platform.
@Spoony I2C打开了 ,也能检测到地址,库也安装完了,但是运行会报这个错,去谷歌查了似乎是用的库被弃用了(也许)