From d5be37bae4afc5192da70f87cc6c7b1420033dd5 Mon Sep 17 00:00:00 2001 From: Toby Roberts <29973222+tobybroberts@users.noreply.github.com> Date: Tue, 28 Feb 2023 13:31:06 +0000 Subject: [PATCH] Changed Pin 25 to "LED" --- pio/pio_exec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pio/pio_exec.py b/pio/pio_exec.py index d8cbc33..9c26283 100644 --- a/pio/pio_exec.py +++ b/pio/pio_exec.py @@ -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)")