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

General • Re: Help with Pico ADC project

$
0
0
I am trying with this,

Code:

from machine import Pinimport timeled = Pin(15, Pin.OUT)button = Pin(14, Pin.IN, Pin.PULL_DOWN)while True:    if button.value():     led.toggle()        time.sleep(0.5)
But, I just have PIN 15 pulled low no matter what. It doesnt change

Statistics: Posted by deanfourie1 — Wed Jun 19, 2024 8:22 am



Viewing all articles
Browse latest Browse all 5381

Trending Articles