Changed Pin 25 to "LED"

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

View File

@ -14,8 +14,8 @@ def prog():
pass
# Construct the StateMachine, binding Pin(25) to the set pin.
sm = rp2.StateMachine(0, prog, set_base=Pin(25))
# Construct the StateMachine, binding LED to the set pin.
sm = rp2.StateMachine(0, prog, set_base=Pin("LED"))
# Turn on the set pin via an exec instruction.
sm.exec("set(pins, 1)")