working motor with old pin system

This commit is contained in:
Dlr Rpi
2025-11-06 15:04:16 +01:00
parent 1058fd505f
commit 7bd18d09ac
2 changed files with 7 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ MIN = 550
MAX = 2450
CHANNELS = 16
kit = ServoKit(channels=CHANNELS, frequency=49)
kit = ServoKit(channels=CHANNELS, frequency=50)
for i in range(CHANNELS):
kit.servo[i].angle = 0

View File

@@ -1,5 +1,11 @@
"""Helpers for building moving mirrors."""
from adafruit_servokit import ServoKit
class Board:
def __init__(self, channels=16, frequency=50):
self.kit = ServoKit(channels=channels, frequency=frequency)
class Motor:
"""Model a type of servo motor."""