Last active
June 23, 2017 02:51
-
-
Save ahtn/51f50fc5080852ad90591fc6b3246ad6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define FORCE_MASTER 1 | |
// this code runs before the usb and keyboard is initialized | |
void matrix_setup(void) { | |
#if FORCE_MASTER | |
// forced master | |
isLeftHand = true; | |
keyboard_master_setup(); | |
sei(); | |
#else | |
// forced slave | |
isLeftHand = false; | |
keyboard_slave_setup(); | |
sei(); | |
keyboard_slave_loop(); | |
#endif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment