From ab92685a82c3b063eecfd2eb933dda8256f72523 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Tue, 8 Nov 2022 19:28:16 +0100 Subject: ferris sweep has no audio or lighting --- ferris/keymap.c | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) (limited to 'ferris/keymap.c') 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; -} -- cgit v1.2.3