Hello, i just got my PiTFT from Adafruit working but now i want to know how i can use the buttons.
I would like to have a script that boots up at startup and it shuts down when the pi shuts down.
I got the first button working using this tutorial:
https://learn.adafruit.com/adafruit-pit ... -pi/extras
This tutorial makes a power switch.
The second button which is GPIO #22 i want to act as an script shutdown. (CTRL + C)
Can anyone tell me how i can make a script that does that?
(Sorry if my English is bad, i'm Dutch)
Thankyou