qmk_firmware/keyboards/vitamins_included/rev2/rev2.c
Ryan fe6d6cf76d
Remove empty override functions (#14312)
* Remove empty override functions, 0-9

* Remove empty override functions, A-D

* Remove empty override functions, E-H

* Remove empty override functions, handwired

* Remove empty override functions, I-L

* Remove empty override functions, M-P

* Remove empty override functions, Q-T

* Remove empty override functions, U-Z
2021-09-05 21:36:31 +01:00

20 lines
559 B
C

#include "rev2.h"
bool is_keyboard_left(void) {
#if defined(MASTER_LEFT)
return is_keyboard_master();
#elif defined(MASTER_RIGHT)
return !is_keyboard_master();
#elif defined(SPLIT_HAND_PIN)
// Test pin SPLIT_HAND_PIN for High/Low, if low it's right hand
setPinInputHigh(SPLIT_HAND_PIN);
bool x = !readPin(SPLIT_HAND_PIN);
setPinInput(SPLIT_HAND_PIN);
return x;
#elif defined(EE_HANDS)
return eeprom_read_byte(EECONFIG_HANDEDNESS);
#endif
return is_keyboard_master();
}