We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10f07ac commit 38af55dCopy full SHA for 38af55d
pio/pio_blink.py
@@ -20,7 +20,7 @@ def blink():
20
wrap()
21
22
# 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))
+sm = rp2.StateMachine(0, blink, freq=2000, set_base=Pin("LED"))
24
25
# Run the state machine for 3 seconds. The LED should blink.
26
sm.active(1)
0 commit comments