asm_pio error when working in Thonny - Shell
Posted: Sat Mar 20, 2021 9:20 am
I don't know if this is the right place to report this behaviour, and I also don't know if this behaviour is incorrect, but if I don't report it, it could not be fixed.
I am trying the example in the 'Get started with MicroPython on Raspberry Pi Pico' book.
When I create a program in a file, it seems to work. But if I start it using the shell, I get an error.
Code:
Error message:
Software:

I am trying the example in the 'Get started with MicroPython on Raspberry Pi Pico' book.
When I create a program in a file, it seems to work. But if I start it using the shell, I get an error.
Code:
Code: Select all
from rp2 import PIO, StateMachine, asm_pio
@asm_pio(set_init=PIO.OUT_LOW)
def led_quarter_brightness():
set(pins, 0) [2]
set(pins, 1)
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 5, in <module>
File "rp2.py", line 254, in dec
File "<stdin>", line 7, in led_quarter_brightness
NameError: name '__thonny_helper' isn't defined
Software:
- MicroPython v1.14 on 2021-03-19; Raspberry Pi Pico with RP2040
- Thonny 3.3.6