Refactor all and add some tests for the calculations
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user