Skip to content

Commit

Permalink
fix: Adafruit_PCA9685.PCA9685(busnum=1)
Browse files Browse the repository at this point in the history
Fixes:
RuntimeError: Could not determine default I2C bus for platform.
  • Loading branch information
0xD0M1M0 authored Mar 16, 2024
1 parent 7b92760 commit 6b664eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/config_steer_motor_maxsteering.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def update_config_file(steering_pwm_range_dict):
print("exomy.yaml does not exist. Finish config_motor_pins.py to generate it.")
exit()

pwm = Adafruit_PCA9685.PCA9685()
pwm = Adafruit_PCA9685.PCA9685(busnum=1)
# For most motors a pwm frequency of 50Hz is normal
pwm_frequency = 50.0 # Hz
pwm.set_pwm_freq(pwm_frequency)
Expand Down

0 comments on commit 6b664eb

Please sign in to comment.