Skip to content

Commit 38af55d

Browse files
authored
Changed Pin 25 to "LED"
1 parent 10f07ac commit 38af55d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pio/pio_blink.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def blink():
2020
wrap()
2121

2222
# Instantiate a state machine with the blink program, at 2000Hz, with set bound to Pin(25) (LED on the rp2 board)
23-
sm = rp2.StateMachine(0, blink, freq=2000, set_base=Pin(25))
23+
sm = rp2.StateMachine(0, blink, freq=2000, set_base=Pin("LED"))
2424

2525
# Run the state machine for 3 seconds. The LED should blink.
2626
sm.active(1)

0 commit comments

Comments
 (0)