Update GPIO API usage in keyboard code (#23361)

This commit is contained in:
Ryan 2024-05-03 15:21:29 +10:00 committed by GitHub
parent 5426a7a129
commit d09a06a1b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
390 changed files with 3912 additions and 3913 deletions

View file

@ -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);