Update GPIO API usage in keyboard code (#23361)
This commit is contained in:
parent
5426a7a129
commit
d09a06a1b3
390 changed files with 3912 additions and 3913 deletions
|
@ -7,9 +7,9 @@ bool is_keyboard_left(void) {
|
|||
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);
|
||||
gpio_set_pin_input_high(SPLIT_HAND_PIN);
|
||||
bool x = !gpio_read_pin(SPLIT_HAND_PIN);
|
||||
gpio_set_pin_input(SPLIT_HAND_PIN);
|
||||
return x;
|
||||
#elif defined(EE_HANDS)
|
||||
return eeprom_read_byte(EECONFIG_HANDEDNESS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue