Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonElia committed Sep 10, 2024
1 parent ef6b32b commit 0bf2c2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,5 @@ fabric.properties

*.pyc
.__pycache__

logs/
1 change: 1 addition & 0 deletions Airbrakes/servo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0bf2c2d

Please sign in to comment.