Update GPIO macros in keymaps (#23792)
This commit is contained in:
parent
8ff8e9eae5
commit
b8f29c3865
82 changed files with 402 additions and 402 deletions
|
|
@ -150,18 +150,18 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
|||
/* Use LED0 and 4 (Kana and KB Lock as layer indicators) */
|
||||
switch (get_highest_layer(state)) {
|
||||
case _FN:
|
||||
writePinLow(LED_KANA_PIN);
|
||||
gpio_write_pin_low(LED_KANA_PIN);
|
||||
break;
|
||||
case _MUS:
|
||||
writePinLow(LED_KB_LOCK_PIN);
|
||||
gpio_write_pin_low(LED_KB_LOCK_PIN);
|
||||
break;
|
||||
case _LOCK:
|
||||
writePinLow(LED_KANA_PIN);
|
||||
writePinLow(LED_KB_LOCK_PIN);
|
||||
gpio_write_pin_low(LED_KANA_PIN);
|
||||
gpio_write_pin_low(LED_KB_LOCK_PIN);
|
||||
break;
|
||||
default: // for any other layers, or the default layer
|
||||
writePinHigh(LED_KANA_PIN);
|
||||
writePinHigh(LED_KB_LOCK_PIN);
|
||||
gpio_write_pin_high(LED_KANA_PIN);
|
||||
gpio_write_pin_high(LED_KB_LOCK_PIN);
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue