You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/32_rp2_asm.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,12 @@ The @rp2.asm_pio decorator allows you to define custom PIO programs in MicroPyth
7
7
8
8
PIO instructions do not follow standard Python syntax, so most type checkers cannot parse them by default. This assembly-like approach is specific to the PIO hardware and relies on features not recognized by typical Python tools.
9
9
10
-
To enable type checking for PIO code, you can the following block before the first `@rp2.asm_pio` function.
10
+
To enable type checking for PIO code, you can the following block before the first `@rp2.asm_pio` function.
11
11
12
12
```py
13
13
# -----------------------------------------------
14
14
# add type hints for the rp2.asm_pio PIO Instructions
15
-
try:
16
-
from typing_extensions importTYPE_CHECKING# type:ignore
0 commit comments