From 59c8672f5c09ae078162beb836032482c79c4b93 Mon Sep 17 00:00:00 2001 From: James Young <18669334+noroadsleft@users.noreply.github.com> Date: Fri, 2 Apr 2021 23:20:11 -0700 Subject: kingly_keys/ave: move RGBLight config to keyboard level (#12457) QMK Configurator's API can't use the RGBLight configurator when it's defined at keymap level. --- keyboards/kingly_keys/ave/config.h | 6 ++++++ keyboards/kingly_keys/ave/ortho/keymaps/default/config.h | 12 ------------ keyboards/kingly_keys/ave/staggered/keymaps/default/config.h | 12 ------------ 3 files changed, 6 insertions(+), 24 deletions(-) (limited to 'keyboards/kingly_keys') diff --git a/keyboards/kingly_keys/ave/config.h b/keyboards/kingly_keys/ave/config.h index 06fda4c26d..8a663da356 100644 --- a/keyboards/kingly_keys/ave/config.h +++ b/keyboards/kingly_keys/ave/config.h @@ -41,6 +41,12 @@ /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION COL2ROW +#define RGB_DI_PIN B7 +#if defined(RGBLIGHT_ENABLE) +# define RGBLED_NUM 2 +# define RGBLIGHT_EFFECT_BREATHING +#endif + /* Set 0 if debouncing isn't needed */ #define DEBOUNCE 5 diff --git a/keyboards/kingly_keys/ave/ortho/keymaps/default/config.h b/keyboards/kingly_keys/ave/ortho/keymaps/default/config.h index 6fba9d2b9c..204d3236eb 100644 --- a/keyboards/kingly_keys/ave/ortho/keymaps/default/config.h +++ b/keyboards/kingly_keys/ave/ortho/keymaps/default/config.h @@ -18,15 +18,3 @@ #pragma once #define TAPPING_TERM_PER_KEY - -#ifdef RGBLIGHT_ENABLE - /* ws2812 RGB LED */ - #define RGB_DI_PIN B7 - #define RGBLED_NUM 2 // Number of LEDs - - #define RGBLIGHT_EFFECT_BREATHING -/* #define RGBLIGHT_HUE_STEP 6 -* #define RGBLIGHT_SAT_STEP 4 -* #define RGBLIGHT_VAL_STEP 4 -*/ -#endif diff --git a/keyboards/kingly_keys/ave/staggered/keymaps/default/config.h b/keyboards/kingly_keys/ave/staggered/keymaps/default/config.h index 6fba9d2b9c..204d3236eb 100644 --- a/keyboards/kingly_keys/ave/staggered/keymaps/default/config.h +++ b/keyboards/kingly_keys/ave/staggered/keymaps/default/config.h @@ -18,15 +18,3 @@ #pragma once #define TAPPING_TERM_PER_KEY - -#ifdef RGBLIGHT_ENABLE - /* ws2812 RGB LED */ - #define RGB_DI_PIN B7 - #define RGBLED_NUM 2 // Number of LEDs - - #define RGBLIGHT_EFFECT_BREATHING -/* #define RGBLIGHT_HUE_STEP 6 -* #define RGBLIGHT_SAT_STEP 4 -* #define RGBLIGHT_VAL_STEP 4 -*/ -#endif -- cgit v1.2.1