You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
484 B

  1. #include <avr/io.h>
  2. #include <avr/wdt.h>
  3. #include <avr/power.h>
  4. #include <avr/interrupt.h>
  5. #include <util/delay.h>
  6. #include <avr/eeprom.h>
  7. #include "split_util.h"
  8. #include "matrix.h"
  9. #include "keyboard.h"
  10. #include "config.h"
  11. #include "timer.h"
  12. #include "debug.h"
  13. volatile bool isLeftHand = true;
  14. volatile bool contacted_by_master = false;
  15. // this code runs before the usb and keyboard is initialized
  16. void matrix_setup(void) {
  17. isLeftHand = eeprom_read_byte(EECONFIG_HANDEDNESS);
  18. }