summaryrefslogtreecommitdiff
path: root/firmware/rgb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/rgb.c')
-rw-r--r--firmware/rgb.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/firmware/rgb.c b/firmware/rgb.c
deleted file mode 100644
index f77607a..0000000
--- a/firmware/rgb.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* Copyright 2021 @Itswaffle/@waffle#6666
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-#ifdef RGBLIGHT_LAYERS
-const rgblight_segment_t PROGMEM my_lower_layer[] = RGBLIGHT_LAYER_SEGMENTS(
- {0, 12, HSV_PURPLE}
-);
-
-const rgblight_segment_t PROGMEM my_raise_layer[] = RGBLIGHT_LAYER_SEGMENTS(
- {0, 12, HSV_YELLOW}
-);
-
-const rgblight_segment_t PROGMEM my_adjust_layer[] = RGBLIGHT_LAYER_SEGMENTS(
- {0, 12, HSV_PINK}
-);
-
-const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
- my_lower_layer,
- my_raise_layer,
- my_adjust_layer
-);
-
-layer_state_t layer_state_set_user(layer_state_t state) {
- rgblight_set_layer_state(1, layer_state_cmp(state, _LOWER));
- rgblight_set_layer_state(2, layer_state_cmp(state, _RAISE));
- rgblight_set_layer_state(3, layer_state_cmp(state, _ADJUST));
- return state;
-}
-#endif
-
-void keyboard_post_init_user(void) {
- rgblight_enable_noeeprom();
- rgblight_sethsv_noeeprom(HSV_CYAN);
- rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT);
-#ifdef RGBLIGHT_LAYERS
- rgblight_layers = my_rgb_layers;
-#endif
-}
-