Skip to content

Commit 8b8b10c

Browse files
CopilotJosverl
andauthored
Add side_pindir parameter to rp2.asm_pio signature (#837)
* Add side_pindir parameter to rp2.asm_pio signature Co-authored-by: Josverl <981654+Josverl@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Josverl <981654+Josverl@users.noreply.github.com>
1 parent 6de494b commit 8b8b10c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

reference/micropython/rp2/__init__.pyi

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def asm_pio(
4040
out_init: Union[Pin, List[Pin], int, List[int], None] = None,
4141
set_init: Union[Pin, List[Pin], int, List[int], None] = None,
4242
sideset_init: Union[Pin, List[Pin], int, List[int], None] = None,
43+
side_pindir: bool = False,
4344
in_shiftdir=0,
4445
out_shiftdir=0,
4546
autopush=False,
@@ -59,8 +60,10 @@ def asm_pio(
5960
- *out_init* configures the pins used for ``out()`` instructions.
6061
- *set_init* configures the pins used for ``set()`` instructions. There can
6162
be at most 5.
62-
- *sideset_init* configures the pins used side-setting. There can be at
63-
most 5.
63+
- *sideset_init* configures the pins used for ``.side()`` modifiers. There
64+
can be at most 5.
65+
- *side_pindir* when set to ``True`` configures ``.side()`` modifiers to be
66+
used for pin directions, instead of pin values (the default, when ``False``).
6467
6568
The following parameters are used by default, but can be overridden in
6669
`StateMachine.init()`:

0 commit comments

Comments
 (0)