From 7e3d327d02cce59496720a046b3026974d061ca5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Oct 2025 00:08:55 +0000 Subject: [PATCH 1/2] Initial plan From b15e269726ef5442400e01172b525ef1ca98418b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Oct 2025 00:15:09 +0000 Subject: [PATCH 2/2] Add side_pindir parameter to rp2.asm_pio signature Co-authored-by: Josverl <981654+Josverl@users.noreply.github.com> --- reference/micropython/rp2/__init__.pyi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reference/micropython/rp2/__init__.pyi b/reference/micropython/rp2/__init__.pyi index 91af11f9b..aa1e8b688 100644 --- a/reference/micropython/rp2/__init__.pyi +++ b/reference/micropython/rp2/__init__.pyi @@ -40,6 +40,7 @@ def asm_pio( out_init: Union[Pin, List[Pin], int, List[int], None] = None, set_init: Union[Pin, List[Pin], int, List[int], None] = None, sideset_init: Union[Pin, List[Pin], int, List[int], None] = None, + side_pindir: bool = False, in_shiftdir=0, out_shiftdir=0, autopush=False, @@ -59,8 +60,10 @@ def asm_pio( - *out_init* configures the pins used for ``out()`` instructions. - *set_init* configures the pins used for ``set()`` instructions. There can be at most 5. - - *sideset_init* configures the pins used side-setting. There can be at - most 5. + - *sideset_init* configures the pins used for ``.side()`` modifiers. There + can be at most 5. + - *side_pindir* when set to ``True`` configures ``.side()`` modifiers to be + used for pin directions, instead of pin values (the default, when ``False``). The following parameters are used by default, but can be overridden in `StateMachine.init()`: