I use a simple python script (https://github.com/edus44/lakka-gpio-control/) for Lakka GPIO button input on a Raspberry Pi 4.
The script works perfectly: If I short wire one of the GPIO Pins to GND with a simple piece of metal, the respective output is generated. If I want to use one of those micro push buttons (https://cdn.sparkfun.com//assets/parts/9/0/00097-03-L.jpg), it does nothing even though the button works perfectly (wiring tested with multimeter) Is there anything I'm missing with resistance, wiring etc.?
[Edit]
The pushbutton is directly connected to GPIO26 and ground. As the script sets GPIO.PUD_UP, this shut be it to enable input.
As mentioned above, the multimeter showed correct behavior of the pushbutton wiring as well as short wiring GPIO26 and GND produced the command to shut the RPI down.
| |
... when pressed it isH
– jsotola Nov 2 '20 at 21:34