Update GPIO macros in keymaps (#23792)

This commit is contained in:
Ryan 2024-05-25 04:38:57 +10:00 committed by GitHub
parent 8ff8e9eae5
commit b8f29c3865
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
82 changed files with 402 additions and 402 deletions

View file

@ -56,13 +56,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
layer_state_t layer_state_set_user(layer_state_t state) {
setPinOutput(LOCK_LED_PIN);
gpio_set_pin_output(LOCK_LED_PIN);
switch (get_highest_layer(state)) {
case _LOCK:
writePin(LOCK_LED_PIN, 0);
gpio_write_pin(LOCK_LED_PIN, 0);
break;
default: // for any other layers, or the default layer
writePin(LOCK_LED_PIN, 1);
gpio_write_pin(LOCK_LED_PIN, 1);
break;
}
return state;

View file

@ -46,9 +46,9 @@ layer_state_t layer_state_set_user(layer_state_t state) {
// override kb level function
bool led_update_user(led_t usb_led) {
writePin(B1, !top);
writePin(B2, !middle);
writePin(B3, !bottom);
gpio_write_pin(B1, !top);
gpio_write_pin(B2, !middle);
gpio_write_pin(B3, !bottom);
return false; // we are using LEDs for something else override kb
}
#endif