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

Python • Re: stop loop with button press--raspberry pi and gpio

$
0
0
I just got it figured out and working how i want it to. the issue wasnt with how i was trying to read the state of the pin or "button"

all methods should and could do what i was trying to do, if i had configured the "button" correctly to begin with lmao.

so since i was pulling power from 3.3v and not the gpio, and the gpio button defaults to pull_up=True i needed to configure the button to be pull_up=False or else it would be high on both sides of the button (if i am understanding correctly that is, lol)

whether my statement/logic here is 100% accurate, i got it to do what i needed. all just in time for bed... okay, maybe a few hours past time for bed.

Statistics: Posted by jfisher1991 — Fri Nov 22, 2024 9:10 am



Viewing all articles
Browse latest Browse all 5332

Trending Articles