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

Python • Re: Raspberry pi 5 interanl pull up resistor

$
0
0
Have a look at the built in pinctrl command e.g.

Code:

  pinctrl set 10 pu        Enable GPIO10 ~50k in-pad pull up  pinctrl set 10 pd        Enable GPIO10 ~50k in-pad pull down
or use gpiozero in python and the pull_up parameter for an input (buton). "If True, the device uses a pull-up resistor to set the GPIO pin “high” by default."

Statistics: Posted by neilgl — Mon Feb 12, 2024 10:46 pm



Viewing all articles
Browse latest Browse all 1286

Trending Articles