From 6e74abc643e944dc18d4f53762b52459b7691308 Mon Sep 17 00:00:00 2001 From: James Young <18669334+noroadsleft@users.noreply.github.com> Date: Fri, 12 Feb 2021 16:59:10 -0800 Subject: [Keyboard] tunks/ergo33: define RGBLight config at kb level (#11855) --- keyboards/tunks/ergo33/config.h | 9 +++++++++ keyboards/tunks/ergo33/keymaps/rgb/config.h | 7 +++++-- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'keyboards/tunks') 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 -- cgit v1.2.3