So I managed to get a 8 Leds to light up and I could change the color of each one.
I tried to expand on this and now nothing works. Even this SUPER simple code:
from machine import Pin
led = Pin(25, Pin.OUT)
led.toggle()
I get:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'machine'
Is my Pico suffering from an identity crisis?
One possible explanation is that you have changed the configuration of your Thonny IDE so that it is running your script using the Python interpreter on your Workstation machine.
Check the information panel at the bottom right corner of the Thonny window and make sure it refers to the MicroPython firmware on your attached Pico board.
Statistics: Posted by B.Goode — Wed Jan 01, 2025 11:43 pm