Replies: 1 comment 4 replies
-
WHich port do you use. STM32 and MIMXRT port have the habit to mount the SD card as standard path when it is inserted at boot time. Then MicroPyhton looks for boot.py and main.py at the SD card. Built-in modules should still be accessible. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I plug in an SD card and put my source code on it, the compiler can no longer find the Micropython libraries, e.g. "NameError: name 'pyb' isn't defined". The same code compiles and runs when it's on the flash drive. What am I missing? Do I have to put all my imports in the boot file, perhaps? Sorry - I have looked around, but I can't find the answer.
Beta Was this translation helpful? Give feedback.
All reactions