Have a look at the built in pinctrl command e.g. 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."
Code:
pinctrl set 10 pu Enable GPIO10 ~50k in-pad pull up pinctrl set 10 pd Enable GPIO10 ~50k in-pad pull down
Statistics: Posted by neilgl — Mon Feb 12, 2024 10:46 pm