Change peak mode switch logic to A/D logic
Fix bugs in control logic

Applied internal pullup to D5 so as to enable the calibrate mode when
floating.

Consolidate variable assignment to single location in updateGraph()
Initial commit of debug program for switches

This file is a debug program for the switches to textually display the
state of all the switches.