Changed Pin 25 to "LED"
rodzic
38af55dc13
commit
d5be37bae4
|
@ -14,8 +14,8 @@ def prog():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
# Construct the StateMachine, binding Pin(25) to the set pin.
|
# Construct the StateMachine, binding LED to the set pin.
|
||||||
sm = rp2.StateMachine(0, prog, set_base=Pin(25))
|
sm = rp2.StateMachine(0, prog, set_base=Pin("LED"))
|
||||||
|
|
||||||
# Turn on the set pin via an exec instruction.
|
# Turn on the set pin via an exec instruction.
|
||||||
sm.exec("set(pins, 1)")
|
sm.exec("set(pins, 1)")
|
||||||
|
|
Ładowanie…
Reference in New Issue