diff options
author | Ramon Imbao <ramonimbao@gmail.com> | 2022-09-14 23:16:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-14 08:16:54 -0700 |
commit | fc3f2dcb43f2aacdac017ac6c3f0b6ac0241162a (patch) | |
tree | cb13fe7819c5a65da0a09a6c6a5f143b9e3eb06a /keyboards/abatskeyboardclub/nayeon/keymaps/iso/keymap.c | |
parent | 23666150e968cd7518db77b837a7f0895a8ec063 (diff) |
[Keyboard] Replace Nayeon ATmega32u4 config with RP2040 (#18265)
Diffstat (limited to 'keyboards/abatskeyboardclub/nayeon/keymaps/iso/keymap.c')
-rw-r--r-- | keyboards/abatskeyboardclub/nayeon/keymaps/iso/keymap.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/keyboards/abatskeyboardclub/nayeon/keymaps/iso/keymap.c b/keyboards/abatskeyboardclub/nayeon/keymaps/iso/keymap.c index ae81182acc..74e74207a3 100644 --- a/keyboards/abatskeyboardclub/nayeon/keymaps/iso/keymap.c +++ b/keyboards/abatskeyboardclub/nayeon/keymaps/iso/keymap.c @@ -25,37 +25,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT ) }; - -#ifdef RGBLIGHT_ENABLE - -const rgblight_segment_t PROGMEM ll_none[] = RGBLIGHT_LAYER_SEGMENTS( - {0, 1, HSV_OFF}, - {1, 1, HSV_OFF} -); - -const rgblight_segment_t PROGMEM ll_cl[] = RGBLIGHT_LAYER_SEGMENTS( - {1, 1, HSV_OFF} -); - -const rgblight_segment_t PROGMEM ll_sl[] = RGBLIGHT_LAYER_SEGMENTS( - {0, 1, HSV_OFF} -); - -const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST(ll_none, ll_cl, ll_sl); - -void keyboard_post_init_user(void) { - rgblight_layers = rgb_layers; -} - -bool led_update_user(led_t led_state) { - uint8_t lock_bits = led_state.scroll_lock << 1 | led_state.caps_lock; - for (uint8_t i=0; i<3; i++) { - rgblight_set_layer_state(i, false); - } - if (lock_bits < 3) { - rgblight_set_layer_state(lock_bits, true); - } - - return false; -} -#endif |