diff options
author | itswaffie <[email protected]> | 2021-04-23 22:40:09 -0600 |
---|---|---|
committer | itswaffie <[email protected]> | 2021-04-23 22:40:09 -0600 |
commit | c7b0af8ae5277675e99bd6539a1bb38b4c422b03 (patch) | |
tree | 0c974aa66605da6ea1ffeed367e2697576f6eafd /firmware/rgb.c | |
parent | 99ed280c2e1546bf09a9c888ea49d31094614c7b (diff) | |
download | protoncrkbd-c7b0af8ae5277675e99bd6539a1bb38b4c422b03.tar.gz protoncrkbd-c7b0af8ae5277675e99bd6539a1bb38b4c422b03.zip |
Add default firmware stuff
Diffstat (limited to 'firmware/rgb.c')
-rw-r--r-- | firmware/rgb.c | 54 |
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 -} - |