diff options
author | Joel Challis <git@zvecr.com> | 2023-11-26 18:36:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 05:36:45 +1100 |
commit | 1ed03f498fa204178c2696c510ac6a2cd8524e2d (patch) | |
tree | b97c1f983b7e4b57c007d0feedadd3ad3e39062b /keyboards/tmo50/keymaps/talljoe/keymap.c | |
parent | 4908d4b1ca260efecf3613e6517aa3a6f2034876 (diff) |
Remove userspace keymaps (#22544)
Diffstat (limited to 'keyboards/tmo50/keymaps/talljoe/keymap.c')
-rw-r--r-- | keyboards/tmo50/keymaps/talljoe/keymap.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/keyboards/tmo50/keymaps/talljoe/keymap.c b/keyboards/tmo50/keymaps/talljoe/keymap.c deleted file mode 100644 index fa6523992e..0000000000 --- a/keyboards/tmo50/keymaps/talljoe/keymap.c +++ /dev/null @@ -1,44 +0,0 @@ -#include "quantum.h" -#include "talljoe.h" - -bool process_indicator_led_user(uint32_t state){ - return false; -} - -#define LED_MASK (_BV(PB0) | _BV(PB1) | _BV(PB2) | _BV(PB3)) -#define WHITE (_BV(PB0)) -#define YELLOW (_BV(PB1)) -#define MAGENTA (_BV(PB2)) -#define RED (_BV(PB3)) - -void matrix_scan_keymap(void) { - uint32_t lights = WHITE; - - switch(get_highest_layer(layer_state)) - { - case _NAV: - lights |= YELLOW; - break; - case _NUM: - lights |= MAGENTA; - break; - case _ADJUST: - lights |= RED; - break; - default: { - uint8_t default_layer = get_highest_layer(default_layer_state); - lights = 0; // no white LED by default. - if(default_layer & 1) - lights |= YELLOW; - if(default_layer & 2) - lights |= MAGENTA; - if(default_layer & 4) - lights |= RED; - } - } - - uint32_t port = PORTB; - port |= LED_MASK; - port &= ~lights; - PORTB = port; -} |