Skip to content

Instantly share code, notes, and snippets.

@ahtn
Last active Jun 23, 2017
Embed
What would you like to do?
#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