4 #include <avr/interrupt.h>
5 #include <util/delay.h>
6 #include <avr/eeprom.h>
7 #include "split_util.h"
14 volatile bool isLeftHand = true;
15 volatile bool contacted_by_master = false;
17 bool is_rev2(void) // Input with pullup, if rev2, pin is pulled down with 220R resistor.
20 bool rev2 = !readPin(B5);
25 // this code runs before the usb and keyboard is initialized
26 void matrix_setup(void) {
27 isLeftHand = eeprom_read_byte(EECONFIG_HANDEDNESS);