~ruther/qmk_firmware

ref: c27d96b4c1ed8aa5bf9cad20380b8f723b149a83 qmk_firmware/keyboards/vitamins_included/split_util.c -rw-r--r-- 484 bytes
c27d96b4 — Drashna Jaelre Fix ATSAM's USB HID descriptor to support higher heycodes 7 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/power.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <avr/eeprom.h>
#include "split_util.h"
#include "matrix.h"
#include "keyboard.h"
#include "config.h"
#include "timer.h"
#include "debug.h"

volatile bool isLeftHand = true;
volatile bool contacted_by_master = false;

// this code runs before the usb and keyboard is initialized
void matrix_setup(void) {
  isLeftHand = eeprom_read_byte(EECONFIG_HANDEDNESS);
}