9acca9 wrote: ↑
Tue Jun 12, 2018 7:52 pm
Hi.Could someone pass me a code to print "Button released" ???
The truth is that I was testing several codes and I can not find the correct one.
In other words, the message "Button released" appears when a button that is always closed is released.
Greetings and many thanks
this is my button.
you need to confirm which language you are using, the assumption is python, in which case, B.Goode has shown a good link to help.
Also with any Input you need to be aware of 'floating' pins, so if pull-ups are not utilised, either internal or external, then you may not be getting the results you expect.
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):