I'm using a Raspberry pi to log GPS tracks in my car, so it's headless and has no network.
What is the simplest way to add a pushbutton to receive an input that will enable me to:
- stop the GPS daemon
- initiate a shutdown
I'm from a CS (Computer Science) background, so looking for the simplest circuit and the way to read the switch state via something like a cron job.
Bonus points for adding an LED I can turn off to confirm shutdown :)