Skip to content

Commit f5e8154

Browse files
committed
Fix GPIO pin setup for UP and DOWN movements; change initial state to HIGH
1 parent 679ca77 commit f5e8154

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/progressive_automations_python/movement_control.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def release_up() -> None:
2323

2424

2525
def press_up() -> None:
26-
"""Set UP pin to drive low (button pressed)"""
27-
GPIO.setup(UP_PIN, GPIO.OUT, initial=GPIO.LOW)
26+
"""Set UP pin to drive high (button pressed)"""
27+
GPIO.setup(UP_PIN, GPIO.OUT, initial=GPIO.HIGH)
2828

2929

3030
def release_down() -> None:
@@ -33,8 +33,8 @@ def release_down() -> None:
3333

3434

3535
def press_down() -> None:
36-
"""Set DOWN pin to drive low (button pressed)"""
37-
GPIO.setup(DOWN_PIN, GPIO.OUT, initial=GPIO.LOW)
36+
"""Set DOWN pin to drive high (button pressed)"""
37+
GPIO.setup(DOWN_PIN, GPIO.OUT, initial=GPIO.HIGH)
3838

3939

4040
def cleanup_gpio() -> None:

0 commit comments

Comments
 (0)