回复了 咱就看看 创建的主题 树莓派 / 树莓派连接PCA9685控制舵机时报错
2024-04-17

@店长大人

回复了 咱就看看 创建的主题 树莓派 / 树莓派连接PCA9685控制舵机时报错
2024-04-17

/home/guanchen/.virtualenvs/garbage_app_sever-master/bin/python /tmp/pycharm_project_346/garbage_app_sever-master/app_sever.py
Traceback (most recent call last):
File "/tmp/pycharm_project_346/garbage_app_sever-master/app_sever.py", line 5, in <module>
from motor import set_servo_open, set_servo_close
File "/tmp/pycharm_project_346/garbage_app_sever-master/motor.py", line 6, in <module>
pwm = Adafruit_PCA9685.PCA9685()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/guanchen/.virtualenvs/garbage_app_sever-master/lib/python3.11/site-packages/Adafruit_PCA9685/PCA9685.py", line 74, in __init__
self._device = i2c.get_i2c_device(address, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/guanchen/.virtualenvs/garbage_app_sever-master/lib/python3.11/site-packages/Adafruit_GPIO/I2C.py", line 63, in get_i2c_device
busnum = get_default_bus()
^^^^^^^^^^^^^^^^^
File "/home/guanchen/.virtualenvs/garbage_app_sever-master/lib/python3.11/site-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.

回复了 咱就看看 创建的主题 树莓派 / 树莓派连接PCA9685控制舵机时报错
2024-04-17

您好,最近也是遇到了这个问题,可以私信您交流一下吗


伍岚正

主页

> 返回首页