Use of @rp2.asm_pio in a module #16000
Unanswered
sk8board
asked this question in
Using MicroPython
Replies: 1 comment 2 replies
-
you need to do |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I get the following error when using a state machine in a module.
NameError: name 'rp2' isn't defined
The following code works independently but does not work as a module.
If I save this code to the RP2040 Pico as
Demo_Module.py
, then inmain.py
I willimport Demo_Module
, I receive the error.NameError: name 'rp2' isn't defined
Is there something special to do when using the @ decorator in a module?
Beta Was this translation helpful? Give feedback.
All reactions