Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5015

General programming discussion • Re: 24 Minute Sun Simulation

$
0
0
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?

Statistics: Posted by slotfan — Wed Jan 01, 2025 7:40 pm



Viewing all articles
Browse latest Browse all 5015

Trending Articles