This commit is contained in:
2026-05-18 19:49:40 +02:00
commit 27fc2d2757
170 changed files with 6571 additions and 0 deletions
@@ -0,0 +1,14 @@
import Adafruit_PCA9685
import time
import sys
'''
This script simply stops all the motors, in case they were left in a running state.
'''
pwm = Adafruit_PCA9685.PCA9685()
# For most motors a pwm frequency of 50Hz is normal
pwm_frequency = 50.0 # Hz
pwm.set_pwm_freq(pwm_frequency)
for pin_number in range(16):
pwm.set_pwm(pin_number, 0, 0)