diff options
| author | Takeshi ISHII <2170248+mtei@users.noreply.github.com> | 2018-09-14 02:24:10 +0900 |
|---|---|---|
| committer | skullydazed <skullydazed@users.noreply.github.com> | 2018-09-13 10:24:09 -0700 |
| commit | 6d6d91c834ef3415425e21d895d4ec91c67fd4b8 (patch) | |
| tree | 45724c30bcfe342d88899db355782250312f1704 /quantum/rgblight_reconfig.h | |
| parent | ce122c4981c71d33a85db94c787d5ec7a823acc6 (diff) | |
| download | qmk_firmware-6d6d91c834ef3415425e21d895d4ec91c67fd4b8.tar.gz qmk_firmware-6d6d91c834ef3415425e21d895d4ec91c67fd4b8.zip | |
rgblight.[ch] more configurable (#3582)
* add temporary test code rgblight-macro-test1.[ch]
* rgblight.h : mode auto numberring and auto generate mode name symbol
No change in build result.
* rgblight.c use RGBLIGHT_MODE_xxx symbols
No change in build result.
* quantum.c use RGBLIGHT_MODE_xxx symbols
No change in build result.
* fix build break. when RGB_MATRIX_ENABLE defined
* add temporary test code rgblight-macro-test2.[ch]
* modify rgblight_mode_eeprom_helper() and rgblight_sethsv_eeprom_helper()
* modify rgblight_task()
* configurable each effect compile on/off in config.h
* update docs/feature_rgblight.md
* fix conflict. docs/feature_rgblight.md
* remove temporary test code rgblight-macro-test*.[ch]
* fix comment typo.
* remove old mode number from comment
* update docs/feature_rgblight.md about effect mode
* Revert "update docs/feature_rgblight.md about effect mode"
This reverts commit 43890663fcc9dda1899df7a37d382fc38b1a6d6d.
* some change docs/feature_rgblight.md
* fix typo
* docs/feature_rgblight.md update: revise mode number table
Diffstat (limited to 'quantum/rgblight_reconfig.h')
| -rw-r--r-- | quantum/rgblight_reconfig.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/quantum/rgblight_reconfig.h b/quantum/rgblight_reconfig.h new file mode 100644 index 000000000..11bd4fd11 --- /dev/null +++ b/quantum/rgblight_reconfig.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | #ifndef RGBLIGHT_RECONFIG_H | ||
| 2 | #define RGBLIGHT_RECONFIG_H | ||
| 3 | |||
| 4 | #ifdef RGBLIGHT_ANIMATIONS | ||
| 5 | // for backward compatibility | ||
| 6 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 7 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 8 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 9 | #define RGBLIGHT_EFFECT_SNAKE | ||
| 10 | #define RGBLIGHT_EFFECT_KNIGHT | ||
| 11 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 12 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 13 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 14 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 15 | #endif | ||
| 16 | |||
| 17 | #ifdef RGBLIGHT_STATIC_PATTERNS | ||
| 18 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 19 | #endif | ||
| 20 | |||
| 21 | // check dynamic animation effects chose ? | ||
| 22 | #if defined(RGBLIGHT_EFFECT_BREATHING) || \ | ||
| 23 | defined(RGBLIGHT_EFFECT_RAINBOW_MOOD) || \ | ||
| 24 | defined(RGBLIGHT_EFFECT_RAINBOW_SWIRL) || \ | ||
| 25 | defined(RGBLIGHT_EFFECT_SNAKE) || \ | ||
| 26 | defined(RGBLIGHT_EFFECT_KNIGHT) || \ | ||
| 27 | defined(RGBLIGHT_EFFECT_CHRISTMAS) || \ | ||
| 28 | defined(RGBLIGHT_EFFECT_RGB_TEST) || \ | ||
| 29 | defined(RGBLIGHT_EFFECT_ALTERNATING) | ||
| 30 | #define RGBLIGHT_USE_TIMER | ||
| 31 | #ifndef RGBLIGHT_ANIMATIONS | ||
| 32 | #define RGBLIGHT_ANIMATIONS // for backward compatibility | ||
| 33 | #endif | ||
| 34 | #endif | ||
| 35 | |||
| 36 | #endif // RGBLIGHT_RECONFIG_H | ||
