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

MicroPython • Re: PULL_UP PULL_DOWN State is back to front?

$
0
0
No, it's not Pin.Pull_UP. You have the button wired between the GPIO and 3.3V. Therefore you want Pin.PULL_DOWN.

In the resting state the button is not pressed, so you want the GPIO pulled to ground (therefore, pull down). The GPIO state reads low.

When you push the button the GPIO is connected to 3.3V, which is stronger than the pull-down, so the GPIO state reads high.

Statistics: Posted by ame — Fri Jan 24, 2025 3:15 am



Viewing all articles
Browse latest Browse all 5727

Trending Articles


FLASHBACK WITH SIRASA FM AT GALGAMUWA 2022


Mp3 Download: Mdu - Mazola


Imitation gun was fired at motorist in Leicester road-rage incident


Ndebele names


MCKINNEY EMALINE “EMMA” OF WES...


Okra & Motia — The Workshop (Prod by Hammer)


Skint TV teen to be sentenced


Moondru Mudichu 19-09-2017 – Polimer tv Serial


YOSVANI JAMES Arrested by Miami-Dade County Corrections on Jan 10, 2017


Stories • Goddess Stepmom