Revert to Pin 25 from LED
rodzic
036f6a1433
commit
18ee8b84e5
|
@ -19,8 +19,8 @@ def blink():
|
|||
nop() [31]
|
||||
wrap()
|
||||
|
||||
# Instantiate a state machine with the blink program, at 2000Hz, with set bound to Pin(25) (LED on the rp2 board)
|
||||
sm = rp2.StateMachine(0, blink, freq=2000, set_base=Pin("LED"))
|
||||
# Instantiate a state machine with the blink program, at 2000Hz, with set bound to Pin(25) (LED on the Pico board)
|
||||
sm = rp2.StateMachine(0, blink, freq=2000, set_base=Pin(25))
|
||||
|
||||
# Run the state machine for 3 seconds. The LED should blink.
|
||||
sm.active(1)
|
||||
|
|
Ładowanie…
Reference in New Issue