![]() |
GPIO button help. - Printable Version +- HomSpace Forum (https://homspace.nl/forum) +-- Forum: SamplerBox (https://homspace.nl/forum/forum-1.html) +--- Forum: Community (https://homspace.nl/forum/forum-2.html) +--- Thread: GPIO button help. (/thread-158.html) |
GPIO button help. - alexpagans - 06-04-25 Hello, I'm possibly being very dim but if someone could help me with my GPIO preset +/- buttons I would be eternally grateful. Everything else works with my set-up (Raspberry Pi 3B+, 7 segment LCD, mini DAC, sample libraries I've made, WebGui) but I can't get a simple preset up and down button working. I've been trawling the forum/watching videos and tried loads of variations but no luck. It's also confusing me that every GPIO pin layout that I find for the 3B+ seems to number things differently? These are the relevant settings I have in configuration.txt. I have 2 buttons each wired to a ground pin with one going to 17 and the other to 18 (I think, see photo). Code: # Set True to use a 7-segment display via I2C Many thanks! Alex. RE: GPIO button help. - alexpagans - 13-04-25 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 -- 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. |