Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3843

General discussion • How to easily be able to use push buttons with GPIO

$
0
0
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 🤗
IMG_1103.jpeg

Statistics: Posted by Fruity Nut76 — Fri Sep 06, 2024 10:47 pm



Viewing all articles
Browse latest Browse all 3843

Trending Articles