Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Raspberry Pi / AGK - GPIO Pull-Up / Pull-Down - [ How To Set ]

Author
Message
Yeshu777
4
Years of Service
User Offline
Joined: 26th Feb 2020
Location: Cardiff ( Caerdydd ), Wales ( Cymru ), UK
Posted: 29th Jul 2020 16:24 Edited at: 29th Jul 2020 16:25
Hi All,

Just passing on some info if it's of use to anyone.

From my testing - AppGameKit does not enable pull-up or pull downs on the GPIO.

However this can be done as follows:

in the config.txt ( sudo nano /boot/config.txt )

You can add the following declaration eg.

# Select GPIO 12 and enable weak pull up
gpio=12=pu

# Select GPIO 12 and enable weak pull down
gpio=12=pd

# Select GPIO 12 and disable pull ups and pull downs
gpio=12=pn/np

It's all documented on the Raspberry Pi website -> documentation > configuration > config.txt > gpio

Hope this helps someone!

Login to post a reply

Server time is: 2024-11-21 09:11:48
Your offset time is: 2024-11-21 09:11:48