diff --git a/.gitignore b/.gitignore index fc0c8d90..35ff8480 100644 --- a/.gitignore +++ b/.gitignore @@ -93,3 +93,5 @@ fabric.properties *.pyc .__pycache__ + +logs/ \ No newline at end of file diff --git a/Airbrakes/servo.py b/Airbrakes/servo.py index ccb51022..737bafa0 100644 --- a/Airbrakes/servo.py +++ b/Airbrakes/servo.py @@ -16,6 +16,7 @@ def __init__(self, gpio_pin_number: int, min_extension: float, max_extension: fl self.current_extension = 0.0 # Sets up the servo with the specified GPIO pin number + # For this to work, you have to run the pigpio daemon on the Raspberry Pi (sudo pigpiod) gpiozero.Device.pin_factory = gpiozero.pins.pigpio.PiGPIOFactory() self.servo = gpiozero.Servo(gpio_pin_number)