diff --git a/ferris/config.h b/ferris/config.h index b313b11..2247e6e 100644 --- a/ferris/config.h +++ b/ferris/config.h @@ -36,41 +36,6 @@ // achordion will avoid the worst #define PERMISSIVE_HOLD -// -// audio configuration -// - -// fix startup sound -#define AUDIO_INIT_DELAY - -// normal startup sound -#define STARTUP_SONG SONG(PLANCK_SOUND) - -// no music mode used -#define NO_MUSIC_MODE - -// -// underglow configuration -// - -// no lights if we sleep -#define RGBLIGHT_SLEEP - -// more modes for lights -#define RGBLIGHT_EFFECT_ALTERNATING -#define RGBLIGHT_EFFECT_BREATHING -#define RGBLIGHT_EFFECT_CHRISTMAS -#define RGBLIGHT_EFFECT_KNIGHT -#define RGBLIGHT_EFFECT_RAINBOW_MOOD -#define RGBLIGHT_EFFECT_RAINBOW_SWIRL -#define RGBLIGHT_EFFECT_RGB_TEST -#define RGBLIGHT_EFFECT_SNAKE -#define RGBLIGHT_EFFECT_STATIC_GRADIENT -#define RGBLIGHT_EFFECT_TWINKLE - -// we want to have different backlight per layers -#define RGBLIGHT_LAYERS - // // remove some features we don't need // diff --git a/ferris/keymap.c b/ferris/keymap.c index f2af9a3..0c946b7 100644 --- a/ferris/keymap.c +++ b/ferris/keymap.c @@ -124,52 +124,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; -/* plwnck rev6 RGB layout: - * ---------------------------------- - * | 6 5 4 3 | - * | 0 | - * | 7 8 1 2 | - * ---------------------------------- - */ - -const rgblight_segment_t PROGMEM qwerty_layer[] = RGBLIGHT_LAYER_SEGMENTS( - {1, 8, HSV_WHITE} -); - -const rgblight_segment_t PROGMEM sym_layer[] = RGBLIGHT_LAYER_SEGMENTS( - {1, 8, HSV_BLUE} -); - -const rgblight_segment_t PROGMEM num_layer[] = RGBLIGHT_LAYER_SEGMENTS( - {1, 8, HSV_GREEN} -); - -const rgblight_segment_t PROGMEM fn_layer[] = RGBLIGHT_LAYER_SEGMENTS( - {1, 8, HSV_RED} -); - -const rgblight_segment_t PROGMEM nav_layer[] = RGBLIGHT_LAYER_SEGMENTS( - {1, 8, HSV_WHITE} -); - -const rgblight_segment_t * const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST( - [_QWERTY] = qwerty_layer, - [_SYM] = sym_layer, - [_NUM] = num_layer, - [_FN] = fn_layer, - [_NAV] = nav_layer -); - -void keyboard_post_init_user(void) { - // Enable the LED layers - rgblight_layers = my_rgb_layers; -} - -layer_state_t layer_state_set_user(layer_state_t state) -{ - rgblight_set_layer_state(_SYM, layer_state_cmp(state, _SYM)); - rgblight_set_layer_state(_NUM, layer_state_cmp(state, _NUM)); - rgblight_set_layer_state(_FN, layer_state_cmp(state, _FN)); - rgblight_set_layer_state(_NAV, layer_state_cmp(state, _NAV)); - return state; -}