Hello guys,
I've made a program that collects data from differents sensors and saves it on a USB stick.
The only way the program can be closed/stopped is by a keyboardInterrupt.
Now to my question:
Is there a way to create a macro that if you press a button (that is connected thorugh the GPIO's or if it's simplier connected with USB) a keyboardInterrupt occurs and the program stop?
Thanks in advance
Kind regards
Matthias