Changed Pin 25 to "LED"

This commit is contained in:
Toby Roberts 2023-02-28 13:29:55 +00:00 committed by GitHub
parent 10f07acf74
commit 38af55dc13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def blink():
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(25))
sm = rp2.StateMachine(0, blink, freq=2000, set_base=Pin("LED"))
# Run the state machine for 3 seconds. The LED should blink.
sm.active(1)