GPIO type
This commit is contained in:
parent
a595f07038
commit
101ac674ed
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -31,7 +31,7 @@ toggle_switch_right_pin = 14
|
|||
# Cleanup GPIO to avoid "channel already in use" errors
|
||||
GPIO.cleanup()
|
||||
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
GPIO.setmode(GPIO.Board)
|
||||
GPIO.setup(button_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
||||
GPIO.setup(toggle_switch_left_pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
|
||||
GPIO.setup(toggle_switch_right_pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
|
||||
|
|
Loading…
Reference in a new issue