Skip to content

Commit

Permalink
[Keymap] Update rp2040_orbweaver (qmk#24704)
Browse files Browse the repository at this point in the history
* Update keymap.c

enhancement - power down indicator LEDs when host sleeps

* Update keyboards/lostdotfish/rp2040_orbweaver/keymaps/default/keymap.c

Co-authored-by: jack <[email protected]>

* Update keyboards/lostdotfish/rp2040_orbweaver/keymaps/default/keymap.c

Co-authored-by: jack <[email protected]>

---------

Co-authored-by: jack <[email protected]>
  • Loading branch information
Lostdotfish and waffle87 authored Dec 11, 2024
1 parent 847257c commit d283e27
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions keyboards/lostdotfish/rp2040_orbweaver/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,15 @@ layer_state_t layer_state_set_user(layer_state_t state) {
}
return state;
}
void suspend_power_down_kb(void) {
// code will run multiple times while keyboard is suspended
gpio_write_pin_high(GP23);
gpio_write_pin_high(GP24);
gpio_write_pin_high(GP25);
suspend_power_down_user();
}

void suspend_wakeup_init_kb(void) {
layer_state_set_kb(layer_state);
suspend_wakeup_init_user();
}

0 comments on commit d283e27

Please sign in to comment.