blob: bcc2a437bdc80e868631de2f4ca02d7f5f5f0340 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include QMK_KEYBOARD_H
bool is_keyboard_master(void) {
// TODO: replace this override once USB host detection is implemented
// SPLIT_HAND_PIN Combined with MASTER_LEFT or MASTER_RIGHT, gives a crude
// way to force teensy to run as slave/master
setPinInput(SPLIT_HAND_PIN);
#if defined(MASTER_RIGHT)
return !readPin(SPLIT_HAND_PIN);
#else
return readPin(SPLIT_HAND_PIN);
#endif
}
|