Mechanical switches

Eight mechanical switches are connected to XMEGA PORTD (PD0:PD5) and PORTR (PR0:PR1). Internal pull-ups should be enabled to detect when the buttons are pushed, as they short the respective line to GND.

Note: Switches share the pins with the J3 header: Pushing the buttons potentially affects communication or other functionality on these pins.