Okay I have finally worked it out and it’s actually really simple.
In case anyone else wants to wire buttons directly to GPIO…
Normally every time you reboot the pi it resets any changes unless you simply add this exact line into your config.txt file:-
gpio=0-27=op,pu,dh,ip
Now you will be able to use up to 27 buttons without issue
This was driving me mad as I needed to add over 20 jukebox buttons for my fruitbox project and I couldn’t find this answer anywhere and really surprised myself when it actually worked !
Hopefully someone can benefit from this
In case anyone else wants to wire buttons directly to GPIO…
Normally every time you reboot the pi it resets any changes unless you simply add this exact line into your config.txt file:-
gpio=0-27=op,pu,dh,ip
Now you will be able to use up to 27 buttons without issue
This was driving me mad as I needed to add over 20 jukebox buttons for my fruitbox project and I couldn’t find this answer anywhere and really surprised myself when it actually worked !
Hopefully someone can benefit from this
Statistics: Posted by Fruity Nut76 — Fri Sep 06, 2024 10:47 pm