Skip to content

Commit 2559121

Browse files
committed
Adds BOOT0 as a fifth pin for the Peripherals.buttons list.
1 parent 5a5de05 commit 2559121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_magtag/peripherals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self) -> None:
6565

6666
# Buttons
6767
self.buttons = []
68-
for pin in (board.BUTTON_A, board.BUTTON_B, board.BUTTON_C, board.BUTTON_D):
68+
for pin in (board.BUTTON_A, board.BUTTON_B, board.BUTTON_C, board.BUTTON_D, board.BOOT0):
6969
switch = DigitalInOut(pin)
7070
switch.direction = Direction.INPUT
7171
switch.pull = Pull.UP

0 commit comments

Comments
 (0)