diff options
author | James Young <18669334+noroadsleft@users.noreply.github.com> | 2021-02-12 16:59:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-12 16:59:10 -0800 |
commit | 6e74abc643e944dc18d4f53762b52459b7691308 (patch) | |
tree | a66de980f888a590fec23e72b01f945972c8cf37 | |
parent | bf1c40d6820b5cfeee0e77483dae2931a9ee2ae1 (diff) | |
download | qmk_firmware-6e74abc643e944dc18d4f53762b52459b7691308.tar.gz qmk_firmware-6e74abc643e944dc18d4f53762b52459b7691308.zip |
[Keyboard] tunks/ergo33: define RGBLight config at kb level (#11855)
-rw-r--r-- | keyboards/tunks/ergo33/config.h | 9 | ||||
-rw-r--r-- | keyboards/tunks/ergo33/keymaps/rgb/config.h | 7 |
2 files changed, 14 insertions, 2 deletions
diff --git a/keyboards/tunks/ergo33/config.h b/keyboards/tunks/ergo33/config.h index 96cc5b93b0..11a427a30e 100644 --- a/keyboards/tunks/ergo33/config.h +++ b/keyboards/tunks/ergo33/config.h @@ -43,6 +43,15 @@ /* Underglow + top RGB configuration */ #define RGB_DI_PIN D4 +#define RGBLIGHT_ANIMATIONS + +#if !defined(RGBLED_NUM) +/* RGB LED count + * No external LED PCB: 10 + * External LED PCB: 14 + */ +# define RGBLED_NUM 14 +#endif /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ //#define LOCKING_SUPPORT_ENABLE diff --git a/keyboards/tunks/ergo33/keymaps/rgb/config.h b/keyboards/tunks/ergo33/keymaps/rgb/config.h index dceb82945e..e2c8883ed4 100644 --- a/keyboards/tunks/ergo33/keymaps/rgb/config.h +++ b/keyboards/tunks/ergo33/keymaps/rgb/config.h @@ -20,5 +20,8 @@ * No external LED PCB: 10 * External LED PCB: 14 */ -#define RGBLED_NUM 10 -#define RGBLIGHT_ANIMATIONS
\ No newline at end of file +#if defined(RGBLED_NUM) +# undef RGBLED_NUM +# define RGBLED_NUM 10 +#endif +#define RGBLIGHT_ANIMATIONS |