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

MicroPython • Re: Cannot get 2nd LED to activate

$
0
0
Could you post a photo of your wiring?

Also, when posting code here (especially Python code where correct spacing is essential), use the Code button (</>) to put it in a code block like this:

Code:

From machine import Pinfrom time import sleepled = Pin(0, Pin.OUT)led2 = Pin(1,Pin.OUT)while True:    led.value(1)    led2.value(1)    sleep(1)    led.value(0)    led2.value(0)    sleep(1)

Statistics: Posted by rpdom — Wed Dec 25, 2024 2:32 pm



Viewing all articles
Browse latest Browse all 8392

Trending Articles