Refactor all and add some tests for the calculations

This commit is contained in:
2026-01-15 16:12:08 +01:00
parent cc3371b73b
commit 2d067013b4
11 changed files with 161 additions and 102 deletions

View File

@@ -3,9 +3,13 @@ from adafruit_servokit import ServoKit
class Board:
MIN = 500
MAX = 2500
COVER = 180
count = 0
def __init__(self, channels=16, frequency=50):
self.channels = channels
self.address = "" # For the future
self.frequency = frequency
self.kit = ServoKit(channels=channels, frequency=frequency)