I am about to take a project from the bench to be permanently installed in the car. Half in the engine bay and half in the open cockpit.
What I would like to do in install some sort of physical switch so that system will change to debug mode, to run slower and dump a lot more information to the screen, 16x2 LCD.
I was thinking about the using a PCB mount DPDT slide switch. With the legs of the switch on +5V and Ground, the centre leg connected to digital pin 13.
Normal Operation D-13 Ground
Debug Mode D-13 +5V
Is this the best way to implement this type of thing?
Thanks for the time and effort