I have the Sensor.py file in the same folder as my Main.py
I get this message: ImportError: no module named ‘Sensor’
How can I import .py files?
I’ve tried all import options.
I have the Sensor.py file in the same folder as my Main.py
I get this message: ImportError: no module named ‘Sensor’
How can I import .py files?
I’ve tried all import options.
2
Answers
I need to save the
sensor.py
first, then upload it to the pico, and then I can play themain.py
. Thesensor.py
was missing on the pico. Simply clicking main.py on run is not enough.Run in your terminal