GPIO button help.
Started by alexpagans




1 posts in this topic
alexpagans

2 posts 1 threads Joined: Mar 2025
13-04-25, 09:57 -
#2
SOLVED: In case any other folks unfamiliar with GPIO stuff would find it useful.

I ended up using the unedited GPIO configuration.txt code from the Sbox20220206

Code:
#    -- USE_BUTTONS --
# A valid GPIO value will activate the button
# Increase, increases value/proceeds to next menu choice
# Decrease, opposite of above. In 3-button setup it will return from submenu
# Select, either selects menu choice or returns to menu from value set
# Return, if this button is available, it returns to menu and the decr-button is consistent
BUT_incr=05
BUT_decr=13

And wired the buttons:
Increase/preset+ goes from GPIO5 - 1k resistor - button - ground
Decrease/preset- goes from ground - 1k resistor - button - GPIO13

No idea if that's the best way but it works so I'm going with it.


Messages In This Thread
GPIO button help. - by alexpagans - 06-04-25, 11:46
RE: GPIO button help. - by alexpagans - 13-04-25, 09:57