|
Edited by 1645975525 at 2022-3-1 12:08 AM
Hi All,
I was trying to debug the servos and nothing happened. Wen I run webServer.py, server.py, serverTest.py and just about anything I get an error like the one below. There are a number of similar problems all over the internet with no clear fix. Can someone please help?
pi@pi:~/adeept_rasptank $ python3 initPosServos.py
Traceback (most recent call last):
File "/home/pi/adeept_rasptank/initPosServos.py", line 9, 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
Thanks very much,
James
|
|