Skip to content

Commit

Permalink
fl16: Update BIOS hotkey color on keypress
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Nov 15, 2023
1 parent 4118a96 commit 92cad3c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions keyboards/framework/framework.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ void suspend_wakeup_init_kb(void) {
// If in BIOS mode, no matter what the keys have been remapped to, always send them as the F keys
bool bios_mode = false;
bool handle_bios_hotkeys(uint16_t keycode, keyrecord_t *record) {
dprintf("BIOS Mode: %d\n", bios_mode);
if (bios_mode) {
// Red
rgb_matrix_sethsv_noeeprom(0, 0xFF, 0xFF);
rgb_matrix_mode_noeeprom(1);
} else {
// White
rgb_matrix_sethsv_noeeprom(0, 0, 0xFF);
rgb_matrix_mode_noeeprom(1);
}
// Not in bios mode, no special handling, handle as normal
if (!bios_mode)
return true;
Expand Down

0 comments on commit 92cad3c

Please sign in to comment.