diff options
author | MakotoKurauchi <pluis@me.com> | 2018-10-11 04:53:18 +0900 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-10-10 12:53:18 -0700 |
commit | 79bff502471d8fd534e9266954a184aa0f7d55c3 (patch) | |
tree | 6451e2c3d54435676c9bbd0737cadd4f093ccad3 | |
parent | ab91e07753720f8114d6c427139a1436e6efa3ce (diff) | |
download | qmk_firmware-79bff502471d8fd534e9266954a184aa0f7d55c3.tar.gz qmk_firmware-79bff502471d8fd534e9266954a184aa0f7d55c3.zip |
Keymaps: Helix rgblight mode update (#4091)
* Helix each keymap's using rgblight mode symbol instead magic number
No change in build result.
* Helix pico keymaps: make rgblight modes selectable.
No change in build result.
* Helix rev2 keymaps: make rgblight modes selectable.
No change in build result.
* fixed Helix froggy/keymap.c: invalid rgblight mode value 0 to 1 (=RGBLIGHT_MODE_STATIC_LIGHT)
* Deselect RGB_TEST and ALTERNATING in Helix rev2,pico keymaps config.h.
20 files changed, 126 insertions, 34 deletions
diff --git a/keyboards/helix/pico/keymaps/biacco/config.h b/keyboards/helix/pico/keymaps/biacco/config.h index 776eecfb6..765318519 100644 --- a/keyboards/helix/pico/keymaps/biacco/config.h +++ b/keyboards/helix/pico/keymaps/biacco/config.h | |||
@@ -27,3 +27,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
27 | #define AUDIO_CLICKY | 27 | #define AUDIO_CLICKY |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | // If you need more program area, try select and reduce rgblight modes to use. | ||
31 | |||
32 | // Selection of RGBLIGHT MODE to use. | ||
33 | #if defined(LED_ANIMATIONS) | ||
34 | #define RGBLIGHT_EFFECT_BREATHING | ||
35 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
36 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
37 | #define RGBLIGHT_EFFECT_SNAKE | ||
38 | #define RGBLIGHT_EFFECT_KNIGHT | ||
39 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
40 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
41 | //#define RGBLIGHT_EFFECT_RGB_TEST | ||
42 | //#define RGBLIGHT_EFFECT_ALTERNATING | ||
43 | #endif | ||
diff --git a/keyboards/helix/pico/keymaps/biacco/rules.mk b/keyboards/helix/pico/keymaps/biacco/rules.mk index 0a720002d..4f264fa95 100644 --- a/keyboards/helix/pico/keymaps/biacco/rules.mk +++ b/keyboards/helix/pico/keymaps/biacco/rules.mk | |||
@@ -92,7 +92,7 @@ ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) | |||
92 | endif | 92 | endif |
93 | 93 | ||
94 | ifeq ($(strip $(LED_ANIMATIONS)), yes) | 94 | ifeq ($(strip $(LED_ANIMATIONS)), yes) |
95 | OPT_DEFS += -DRGBLIGHT_ANIMATIONS | 95 | OPT_DEFS += -DLED_ANIMATIONS |
96 | endif | 96 | endif |
97 | 97 | ||
98 | ifeq ($(strip $(OLED_ENABLE)), yes) | 98 | ifeq ($(strip $(OLED_ENABLE)), yes) |
diff --git a/keyboards/helix/pico/keymaps/default/config.h b/keyboards/helix/pico/keymaps/default/config.h index 6084b0970..20dfc9f98 100644 --- a/keyboards/helix/pico/keymaps/default/config.h +++ b/keyboards/helix/pico/keymaps/default/config.h | |||
@@ -28,4 +28,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
28 | #define AUDIO_CLICKY | 28 | #define AUDIO_CLICKY |
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | // If you need more program area, try select and reduce rgblight modes to use. | ||
32 | |||
33 | // Selection of RGBLIGHT MODE to use. | ||
34 | #if defined(LED_ANIMATIONS) | ||
35 | #define RGBLIGHT_EFFECT_BREATHING | ||
36 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
37 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
38 | #define RGBLIGHT_EFFECT_SNAKE | ||
39 | #define RGBLIGHT_EFFECT_KNIGHT | ||
40 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
41 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
42 | //#define RGBLIGHT_EFFECT_RGB_TEST | ||
43 | //#define RGBLIGHT_EFFECT_ALTERNATING | ||
44 | #endif | ||
45 | |||
31 | #endif /* CONFIG_USER_H */ | 46 | #endif /* CONFIG_USER_H */ |
diff --git a/keyboards/helix/pico/keymaps/default/keymap.c b/keyboards/helix/pico/keymaps/default/keymap.c index 75221d485..4c5878517 100644 --- a/keyboards/helix/pico/keymaps/default/keymap.c +++ b/keyboards/helix/pico/keymaps/default/keymap.c | |||
@@ -238,7 +238,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
238 | } else { | 238 | } else { |
239 | TOG_STATUS = !TOG_STATUS; | 239 | TOG_STATUS = !TOG_STATUS; |
240 | #ifdef RGBLIGHT_ENABLE | 240 | #ifdef RGBLIGHT_ENABLE |
241 | //rgblight_mode(16); | 241 | //rgblight_mode(RGBLIGHT_MODE_SNAKE + 1); |
242 | #endif | 242 | #endif |
243 | } | 243 | } |
244 | layer_on(_LOWER); | 244 | layer_on(_LOWER); |
@@ -261,7 +261,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
261 | } else { | 261 | } else { |
262 | TOG_STATUS = !TOG_STATUS; | 262 | TOG_STATUS = !TOG_STATUS; |
263 | #ifdef RGBLIGHT_ENABLE | 263 | #ifdef RGBLIGHT_ENABLE |
264 | //rgblight_mode(15); | 264 | //rgblight_mode(RGBLIGHT_MODE_SNAKE); |
265 | #endif | 265 | #endif |
266 | } | 266 | } |
267 | layer_on(_RAISE); | 267 | layer_on(_RAISE); |
diff --git a/keyboards/helix/pico/keymaps/default/rules.mk b/keyboards/helix/pico/keymaps/default/rules.mk index afb124068..b1e219537 100644 --- a/keyboards/helix/pico/keymaps/default/rules.mk +++ b/keyboards/helix/pico/keymaps/default/rules.mk | |||
@@ -92,7 +92,7 @@ ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) | |||
92 | endif | 92 | endif |
93 | 93 | ||
94 | ifeq ($(strip $(LED_ANIMATIONS)), yes) | 94 | ifeq ($(strip $(LED_ANIMATIONS)), yes) |
95 | OPT_DEFS += -DRGBLIGHT_ANIMATIONS | 95 | OPT_DEFS += -DLED_ANIMATIONS |
96 | endif | 96 | endif |
97 | 97 | ||
98 | ifeq ($(strip $(OLED_ENABLE)), yes) | 98 | ifeq ($(strip $(OLED_ENABLE)), yes) |
diff --git a/keyboards/helix/rev1/keymaps/OLED_sample/keymap.c b/keyboards/helix/rev1/keymaps/OLED_sample/keymap.c index fa51501e6..9b81979ff 100644 --- a/keyboards/helix/rev1/keymaps/OLED_sample/keymap.c +++ b/keyboards/helix/rev1/keymaps/OLED_sample/keymap.c | |||
@@ -368,7 +368,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
368 | if (TOG_STATUS) { //TOG_STATUS checks is another reactive key currently pressed, only changes RGB mode if returns false | 368 | if (TOG_STATUS) { //TOG_STATUS checks is another reactive key currently pressed, only changes RGB mode if returns false |
369 | } else { | 369 | } else { |
370 | TOG_STATUS = !TOG_STATUS; | 370 | TOG_STATUS = !TOG_STATUS; |
371 | rgblight_mode(16); | 371 | rgblight_mode(RGBLIGHT_MODE_SNAKE + 1); |
372 | } | 372 | } |
373 | layer_on(_LOWER); | 373 | layer_on(_LOWER); |
374 | update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST); | 374 | update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST); |
@@ -387,7 +387,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
387 | if (TOG_STATUS) { //TOG_STATUS checks is another reactive key currently pressed, only changes RGB mode if returns false | 387 | if (TOG_STATUS) { //TOG_STATUS checks is another reactive key currently pressed, only changes RGB mode if returns false |
388 | } else { | 388 | } else { |
389 | TOG_STATUS = !TOG_STATUS; | 389 | TOG_STATUS = !TOG_STATUS; |
390 | rgblight_mode(15); | 390 | rgblight_mode(RGBLIGHT_MODE_SNAKE); |
391 | } | 391 | } |
392 | layer_on(_RAISE); | 392 | layer_on(_RAISE); |
393 | update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST); | 393 | update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST); |
diff --git a/keyboards/helix/rev2/keymaps/default/config.h b/keyboards/helix/rev2/keymaps/default/config.h index 185e67838..ed3767579 100644 --- a/keyboards/helix/rev2/keymaps/default/config.h +++ b/keyboards/helix/rev2/keymaps/default/config.h | |||
@@ -21,9 +21,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
21 | #ifndef CONFIG_USER_H | 21 | #ifndef CONFIG_USER_H |
22 | #define CONFIG_USER_H | 22 | #define CONFIG_USER_H |
23 | 23 | ||
24 | // if you need more program area, try uncomment follow line | ||
25 | //#include "serial_config_simpleapi.h" | ||
26 | |||
27 | // place overrides here | 24 | // place overrides here |
28 | 25 | ||
26 | // If you need more program area, try select and reduce rgblight modes to use. | ||
27 | |||
28 | // Selection of RGBLIGHT MODE to use. | ||
29 | #if defined(LED_ANIMATIONS) | ||
30 | #define RGBLIGHT_EFFECT_BREATHING | ||
31 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
32 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
33 | #define RGBLIGHT_EFFECT_SNAKE | ||
34 | #define RGBLIGHT_EFFECT_KNIGHT | ||
35 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
36 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
37 | //#define RGBLIGHT_EFFECT_RGB_TEST | ||
38 | //#define RGBLIGHT_EFFECT_ALTERNATING | ||
39 | #endif | ||
40 | |||
29 | #endif /* CONFIG_USER_H */ | 41 | #endif /* CONFIG_USER_H */ |
diff --git a/keyboards/helix/rev2/keymaps/default/keymap.c b/keyboards/helix/rev2/keymaps/default/keymap.c index 087bd8e51..92393208c 100644 --- a/keyboards/helix/rev2/keymaps/default/keymap.c +++ b/keyboards/helix/rev2/keymaps/default/keymap.c | |||
@@ -373,7 +373,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
373 | } else { | 373 | } else { |
374 | TOG_STATUS = !TOG_STATUS; | 374 | TOG_STATUS = !TOG_STATUS; |
375 | #ifdef RGBLIGHT_ENABLE | 375 | #ifdef RGBLIGHT_ENABLE |
376 | //rgblight_mode(16); | 376 | //rgblight_mode(RGBLIGHT_MODE_SNAKE + 1); |
377 | #endif | 377 | #endif |
378 | } | 378 | } |
379 | layer_on(_LOWER); | 379 | layer_on(_LOWER); |
@@ -396,7 +396,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
396 | } else { | 396 | } else { |
397 | TOG_STATUS = !TOG_STATUS; | 397 | TOG_STATUS = !TOG_STATUS; |
398 | #ifdef RGBLIGHT_ENABLE | 398 | #ifdef RGBLIGHT_ENABLE |
399 | //rgblight_mode(15); | 399 | //rgblight_mode(RGBLIGHT_MODE_SNAKE); |
400 | #endif | 400 | #endif |
401 | } | 401 | } |
402 | layer_on(_RAISE); | 402 | layer_on(_RAISE); |
diff --git a/keyboards/helix/rev2/keymaps/default/rules.mk b/keyboards/helix/rev2/keymaps/default/rules.mk index 5340a74ba..14c353d50 100644 --- a/keyboards/helix/rev2/keymaps/default/rules.mk +++ b/keyboards/helix/rev2/keymaps/default/rules.mk | |||
@@ -100,7 +100,7 @@ ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) | |||
100 | endif | 100 | endif |
101 | 101 | ||
102 | ifeq ($(strip $(LED_ANIMATIONS)), yes) | 102 | ifeq ($(strip $(LED_ANIMATIONS)), yes) |
103 | OPT_DEFS += -DRGBLIGHT_ANIMATIONS | 103 | OPT_DEFS += -DLED_ANIMATIONS |
104 | endif | 104 | endif |
105 | 105 | ||
106 | ifeq ($(strip $(OLED_ENABLE)), yes) | 106 | ifeq ($(strip $(OLED_ENABLE)), yes) |
diff --git a/keyboards/helix/rev2/keymaps/edvorakjp/config.h b/keyboards/helix/rev2/keymaps/edvorakjp/config.h index ead31605b..643220383 100644 --- a/keyboards/helix/rev2/keymaps/edvorakjp/config.h +++ b/keyboards/helix/rev2/keymaps/edvorakjp/config.h | |||
@@ -1,11 +1,23 @@ | |||
1 | #ifndef CONFIG_USER_H | 1 | #ifndef CONFIG_USER_H |
2 | #define CONFIG_USER_H | 2 | #define CONFIG_USER_H |
3 | 3 | ||
4 | // if you need more program area, try uncomment follow line | ||
5 | //#include "serial_config_simpleapi.h" | ||
6 | |||
7 | #undef TAPPING_FORCE_HOLD | 4 | #undef TAPPING_FORCE_HOLD |
8 | #undef TAPPING_TERM | 5 | #undef TAPPING_TERM |
9 | #define TAPPING_TERM 120 | 6 | #define TAPPING_TERM 120 |
10 | 7 | ||
8 | // If you need more program area, try select and reduce rgblight modes to use. | ||
9 | |||
10 | // Selection of RGBLIGHT MODE to use. | ||
11 | #if defined(LED_ANIMATIONS) | ||
12 | #define RGBLIGHT_EFFECT_BREATHING | ||
13 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
14 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
15 | #define RGBLIGHT_EFFECT_SNAKE | ||
16 | #define RGBLIGHT_EFFECT_KNIGHT | ||
17 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
18 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
19 | //#define RGBLIGHT_EFFECT_RGB_TEST | ||
20 | //#define RGBLIGHT_EFFECT_ALTERNATING | ||
21 | #endif | ||
22 | |||
11 | #endif /* CONFIG_USER_H */ | 23 | #endif /* CONFIG_USER_H */ |
diff --git a/keyboards/helix/rev2/keymaps/edvorakjp/keymap.c b/keyboards/helix/rev2/keymaps/edvorakjp/keymap.c index 650a39115..22940f7cb 100644 --- a/keyboards/helix/rev2/keymaps/edvorakjp/keymap.c +++ b/keyboards/helix/rev2/keymaps/edvorakjp/keymap.c | |||
@@ -35,7 +35,7 @@ void matrix_scan_user(void) { | |||
35 | 35 | ||
36 | #ifdef RGBLIGHT_ENABLE | 36 | #ifdef RGBLIGHT_ENABLE |
37 | uint32_t layer_state_set_keymap(uint32_t state) { | 37 | uint32_t layer_state_set_keymap(uint32_t state) { |
38 | rgblight_mode_noeeprom(1); | 38 | rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); |
39 | switch (biton32(state)) { | 39 | switch (biton32(state)) { |
40 | case _EDVORAKJ1: | 40 | case _EDVORAKJ1: |
41 | case _EDVORAKJ2: | 41 | case _EDVORAKJ2: |
@@ -52,7 +52,7 @@ uint32_t layer_state_set_keymap(uint32_t state) { | |||
52 | rgblight_sethsv_noeeprom_green(); | 52 | rgblight_sethsv_noeeprom_green(); |
53 | break; | 53 | break; |
54 | default: // for any other layers, or the default layer | 54 | default: // for any other layers, or the default layer |
55 | rgblight_mode_noeeprom(28); | 55 | rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_GRADIENT + 3); |
56 | rgblight_sethsv_noeeprom_red(); | 56 | rgblight_sethsv_noeeprom_red(); |
57 | break; | 57 | break; |
58 | } | 58 | } |
diff --git a/keyboards/helix/rev2/keymaps/edvorakjp/rules.mk b/keyboards/helix/rev2/keymaps/edvorakjp/rules.mk index 67da9c370..9bd46fabc 100644 --- a/keyboards/helix/rev2/keymaps/edvorakjp/rules.mk +++ b/keyboards/helix/rev2/keymaps/edvorakjp/rules.mk | |||
@@ -102,7 +102,7 @@ ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) | |||
102 | endif | 102 | endif |
103 | 103 | ||
104 | ifeq ($(strip $(LED_ANIMATIONS)), yes) | 104 | ifeq ($(strip $(LED_ANIMATIONS)), yes) |
105 | OPT_DEFS += -DRGBLIGHT_ANIMATIONS | 105 | OPT_DEFS += -DLED_ANIMATIONS |
106 | endif | 106 | endif |
107 | 107 | ||
108 | ifeq ($(strip $(OLED_ENABLE)), yes) | 108 | ifeq ($(strip $(OLED_ENABLE)), yes) |
diff --git a/keyboards/helix/rev2/keymaps/five_rows_jis/config.h b/keyboards/helix/rev2/keymaps/five_rows_jis/config.h index c380b7db4..97494c937 100644 --- a/keyboards/helix/rev2/keymaps/five_rows_jis/config.h +++ b/keyboards/helix/rev2/keymaps/five_rows_jis/config.h | |||
@@ -23,9 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
23 | 23 | ||
24 | // place overrides here | 24 | // place overrides here |
25 | 25 | ||
26 | // if you need more program area, try uncomment follow line | ||
27 | //#include "serial_config_simpleapi.h" | ||
28 | |||
29 | #ifdef MOUSEKEY_ENABLE | 26 | #ifdef MOUSEKEY_ENABLE |
30 | #undef MOUSEKEY_INTERVAL | 27 | #undef MOUSEKEY_INTERVAL |
31 | #define MOUSEKEY_INTERVAL 0 | 28 | #define MOUSEKEY_INTERVAL 0 |
@@ -43,4 +40,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | #define MOUSEKEY_DELAY 0 | 40 | #define MOUSEKEY_DELAY 0 |
44 | #endif | 41 | #endif |
45 | 42 | ||
43 | // If you need more program area, try select and reduce rgblight modes to use. | ||
44 | |||
45 | // Selection of RGBLIGHT MODE to use. | ||
46 | #if defined(LED_ANIMATIONS) | ||
47 | #define RGBLIGHT_EFFECT_BREATHING | ||
48 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
49 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
50 | #define RGBLIGHT_EFFECT_SNAKE | ||
51 | #define RGBLIGHT_EFFECT_KNIGHT | ||
52 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
53 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
54 | //#define RGBLIGHT_EFFECT_RGB_TEST | ||
55 | //#define RGBLIGHT_EFFECT_ALTERNATING | ||
56 | #endif | ||
57 | |||
46 | #endif /* CONFIG_USER_H */ | 58 | #endif /* CONFIG_USER_H */ |
diff --git a/keyboards/helix/rev2/keymaps/five_rows_jis/rules.mk b/keyboards/helix/rev2/keymaps/five_rows_jis/rules.mk index 5340a74ba..14c353d50 100644 --- a/keyboards/helix/rev2/keymaps/five_rows_jis/rules.mk +++ b/keyboards/helix/rev2/keymaps/five_rows_jis/rules.mk | |||
@@ -100,7 +100,7 @@ ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) | |||
100 | endif | 100 | endif |
101 | 101 | ||
102 | ifeq ($(strip $(LED_ANIMATIONS)), yes) | 102 | ifeq ($(strip $(LED_ANIMATIONS)), yes) |
103 | OPT_DEFS += -DRGBLIGHT_ANIMATIONS | 103 | OPT_DEFS += -DLED_ANIMATIONS |
104 | endif | 104 | endif |
105 | 105 | ||
106 | ifeq ($(strip $(OLED_ENABLE)), yes) | 106 | ifeq ($(strip $(OLED_ENABLE)), yes) |
diff --git a/keyboards/helix/rev2/keymaps/froggy/config.h b/keyboards/helix/rev2/keymaps/froggy/config.h index dad248303..517368ae9 100644 --- a/keyboards/helix/rev2/keymaps/froggy/config.h +++ b/keyboards/helix/rev2/keymaps/froggy/config.h | |||
@@ -21,12 +21,24 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
21 | #ifndef CONFIG_USER_H | 21 | #ifndef CONFIG_USER_H |
22 | #define CONFIG_USER_H | 22 | #define CONFIG_USER_H |
23 | 23 | ||
24 | // if you need more program area, try uncomment follow line | ||
25 | //#include "serial_config_simpleapi.h" | ||
26 | |||
27 | #undef TAPPING_TERM | 24 | #undef TAPPING_TERM |
28 | #define TAPPING_TERM 200 | 25 | #define TAPPING_TERM 200 |
29 | #define ONESHOT_TAP_TOGGLE 5 /* Tapping this number of times holds the key until tapped this number of times again. */ | 26 | #define ONESHOT_TAP_TOGGLE 5 /* Tapping this number of times holds the key until tapped this number of times again. */ |
30 | #define ONESHOT_TIMEOUT 5000 /* Time (in ms) before the one shot key is released */ | 27 | #define ONESHOT_TIMEOUT 5000 /* Time (in ms) before the one shot key is released */ |
31 | 28 | ||
29 | // If you need more program area, try select and reduce rgblight modes to use. | ||
30 | |||
31 | // Selection of RGBLIGHT MODE to use. | ||
32 | #if defined(LED_ANIMATIONS) | ||
33 | #define RGBLIGHT_EFFECT_BREATHING | ||
34 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
35 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
36 | #define RGBLIGHT_EFFECT_SNAKE | ||
37 | #define RGBLIGHT_EFFECT_KNIGHT | ||
38 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
39 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
40 | //#define RGBLIGHT_EFFECT_RGB_TEST | ||
41 | //#define RGBLIGHT_EFFECT_ALTERNATING | ||
42 | #endif | ||
43 | |||
32 | #endif /* CONFIG_USER_H */ | 44 | #endif /* CONFIG_USER_H */ |
diff --git a/keyboards/helix/rev2/keymaps/froggy/keymap.c b/keyboards/helix/rev2/keymaps/froggy/keymap.c index 81a28dfa5..75c6f0811 100644 --- a/keyboards/helix/rev2/keymaps/froggy/keymap.c +++ b/keyboards/helix/rev2/keymaps/froggy/keymap.c | |||
@@ -399,7 +399,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
399 | #ifdef RGBLIGHT_ENABLE | 399 | #ifdef RGBLIGHT_ENABLE |
400 | if (record->event.pressed) { | 400 | if (record->event.pressed) { |
401 | RGBAnimation = true; | 401 | RGBAnimation = true; |
402 | rgblight_mode(6); | 402 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_MOOD); |
403 | RGB_current_mode = rgblight_config.mode; | 403 | RGB_current_mode = rgblight_config.mode; |
404 | } | 404 | } |
405 | #endif | 405 | #endif |
@@ -408,7 +408,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
408 | #ifdef RGBLIGHT_ENABLE | 408 | #ifdef RGBLIGHT_ENABLE |
409 | if (record->event.pressed) { | 409 | if (record->event.pressed) { |
410 | RGBAnimation = true; | 410 | RGBAnimation = true; |
411 | rgblight_mode(10); | 411 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 1); |
412 | RGB_current_mode = rgblight_config.mode; | 412 | RGB_current_mode = rgblight_config.mode; |
413 | } | 413 | } |
414 | #endif | 414 | #endif |
@@ -417,7 +417,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
417 | #ifdef RGBLIGHT_ENABLE | 417 | #ifdef RGBLIGHT_ENABLE |
418 | if (record->event.pressed) { | 418 | if (record->event.pressed) { |
419 | RGBAnimation = true; | 419 | RGBAnimation = true; |
420 | rgblight_mode(21); | 420 | rgblight_mode(RGBLIGHT_MODE_KNIGHT); |
421 | RGB_current_mode = rgblight_config.mode; | 421 | RGB_current_mode = rgblight_config.mode; |
422 | } | 422 | } |
423 | #endif | 423 | #endif |
@@ -508,7 +508,7 @@ void led_ripple_effect(char r, char g, char b) { | |||
508 | 508 | ||
509 | if (scan_count == -1) { | 509 | if (scan_count == -1) { |
510 | rgblight_enable_noeeprom(); | 510 | rgblight_enable_noeeprom(); |
511 | rgblight_mode(0); | 511 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); |
512 | } else if (scan_count >= 0 && scan_count < 5) { | 512 | } else if (scan_count >= 0 && scan_count < 5) { |
513 | for (unsigned char c=keybuf_begin; c!=keybuf_end; c++) { | 513 | for (unsigned char c=keybuf_begin; c!=keybuf_end; c++) { |
514 | int i = c; | 514 | int i = c; |
diff --git a/keyboards/helix/rev2/keymaps/froggy/rules.mk b/keyboards/helix/rev2/keymaps/froggy/rules.mk index aa9796413..e52e4a373 100644 --- a/keyboards/helix/rev2/keymaps/froggy/rules.mk +++ b/keyboards/helix/rev2/keymaps/froggy/rules.mk | |||
@@ -100,7 +100,7 @@ ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) | |||
100 | endif | 100 | endif |
101 | 101 | ||
102 | ifeq ($(strip $(LED_ANIMATIONS)), yes) | 102 | ifeq ($(strip $(LED_ANIMATIONS)), yes) |
103 | OPT_DEFS += -DRGBLIGHT_ANIMATIONS | 103 | OPT_DEFS += -DLED_ANIMATIONS |
104 | endif | 104 | endif |
105 | 105 | ||
106 | ifeq ($(strip $(OLED_ENABLE)), yes) | 106 | ifeq ($(strip $(OLED_ENABLE)), yes) |
diff --git a/keyboards/helix/rev2/keymaps/yshrsmz/config.h b/keyboards/helix/rev2/keymaps/yshrsmz/config.h index a1cd126ee..d70f23c3e 100644 --- a/keyboards/helix/rev2/keymaps/yshrsmz/config.h +++ b/keyboards/helix/rev2/keymaps/yshrsmz/config.h | |||
@@ -21,3 +21,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
21 | 21 | ||
22 | /* auto shift config */ | 22 | /* auto shift config */ |
23 | #define AUTO_SHIFT_TIMEOUT 150 | 23 | #define AUTO_SHIFT_TIMEOUT 150 |
24 | |||
25 | // If you need more program area, try select and reduce rgblight modes to use. | ||
26 | |||
27 | // Selection of RGBLIGHT MODE to use. | ||
28 | #if defined(LED_ANIMATIONS) | ||
29 | #define RGBLIGHT_EFFECT_BREATHING | ||
30 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
31 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
32 | #define RGBLIGHT_EFFECT_SNAKE | ||
33 | #define RGBLIGHT_EFFECT_KNIGHT | ||
34 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
35 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
36 | //#define RGBLIGHT_EFFECT_RGB_TEST | ||
37 | //#define RGBLIGHT_EFFECT_ALTERNATING | ||
38 | #endif | ||
diff --git a/keyboards/helix/rev2/keymaps/yshrsmz/keymap.c b/keyboards/helix/rev2/keymaps/yshrsmz/keymap.c index cce28796e..049a864c1 100644 --- a/keyboards/helix/rev2/keymaps/yshrsmz/keymap.c +++ b/keyboards/helix/rev2/keymaps/yshrsmz/keymap.c | |||
@@ -312,7 +312,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
312 | } else { | 312 | } else { |
313 | TOG_STATUS = !TOG_STATUS; | 313 | TOG_STATUS = !TOG_STATUS; |
314 | #ifdef RGBLIGHT_ENABLE | 314 | #ifdef RGBLIGHT_ENABLE |
315 | //rgblight_mode(16); | 315 | //rgblight_mode(RGBLIGHT_MODE_SNAKE + 1); |
316 | #endif | 316 | #endif |
317 | } | 317 | } |
318 | layer_on(_LOWER); | 318 | layer_on(_LOWER); |
@@ -335,7 +335,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
335 | } else { | 335 | } else { |
336 | TOG_STATUS = !TOG_STATUS; | 336 | TOG_STATUS = !TOG_STATUS; |
337 | #ifdef RGBLIGHT_ENABLE | 337 | #ifdef RGBLIGHT_ENABLE |
338 | //rgblight_mode(15); | 338 | //rgblight_mode(RGBLIGHT_MODE_SNAKE); |
339 | #endif | 339 | #endif |
340 | } | 340 | } |
341 | layer_on(_RAISE); | 341 | layer_on(_RAISE); |
@@ -450,7 +450,7 @@ void music_scale_user(void) | |||
450 | 450 | ||
451 | // hook point for 'led_test' keymap | 451 | // hook point for 'led_test' keymap |
452 | // 'default' keymap's led_test_init() is empty function, do nothing | 452 | // 'default' keymap's led_test_init() is empty function, do nothing |
453 | // 'led_test' keymap's led_test_init() force rgblight_mode_noeeprom(35); | 453 | // 'led_test' keymap's led_test_init() force rgblight_mode_noeeprom(RGBLIGHT_MODE_RGB_TEST); |
454 | __attribute__ ((weak)) | 454 | __attribute__ ((weak)) |
455 | void led_test_init(void) {} | 455 | void led_test_init(void) {} |
456 | 456 | ||
diff --git a/keyboards/helix/rev2/keymaps/yshrsmz/rules.mk b/keyboards/helix/rev2/keymaps/yshrsmz/rules.mk index da439dc9b..8331a2e1d 100644 --- a/keyboards/helix/rev2/keymaps/yshrsmz/rules.mk +++ b/keyboards/helix/rev2/keymaps/yshrsmz/rules.mk | |||
@@ -99,7 +99,7 @@ ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) | |||
99 | endif | 99 | endif |
100 | 100 | ||
101 | ifeq ($(strip $(LED_ANIMATIONS)), yes) | 101 | ifeq ($(strip $(LED_ANIMATIONS)), yes) |
102 | OPT_DEFS += -DRGBLIGHT_ANIMATIONS | 102 | OPT_DEFS += -DLED_ANIMATIONS |
103 | endif | 103 | endif |
104 | 104 | ||
105 | ifeq ($(strip $(OLED_ENABLE)), yes) | 105 | ifeq ($(strip $(OLED_ENABLE)), yes) |