I just got a pico. I placed the uf2 micropython file on it. The device then is unmounted from the system (Ubuntu 20.04). It is never automatically mounted back like all tutorials say.
Anyway, i unplug and plug it back in. I start thonny and type a simple program to test if my pico is working:
import machine import utime led_pin = machine.Pin(25, machine.Pin.OUT) while True: led_pin.value(1) utime.sleep(3) led_pin.value(0) utime.sleep(3)
When i hit
Run, it opens up a window in order to save the file somewhere. I select the external storage (that is pico). Note that it doesn't explicitly ask me whether i want to save the file to the computer or the pico - like all the tutorials i watched.
I save the file as
blink.py, hit Run and i get an error that:
>>> %Run blink.py Traceback (most recent call last): File "/media/user1/RPI-RP2/blink.py", line 1, in <module> import machine ModuleNotFoundError: No module named 'machine'
I am not sure i understand what is going on, or if i am doing something wrong...