~sungo/qmk_userspace

e02faa5720069c9d8e35fee905e2a3067a981322 — sungo 6 months ago 6cde6c8
move the other config.h bits into board specific headers
4 files changed, 50 insertions(+), 48 deletions(-)

M config.h
A config/foldkb.h
A config/iris.h
A config/reviung.h
M config.h => config.h +3 -48
@@ 24,30 24,7 @@
#endif

#if defined(KEYBOARD_reviung41) || defined(KEYBOARD_reviung39)

#define RGBLIGHT_LAYERS

#undef RGBLED_NUM

#define RGB_DI_PIN D3
#define RGBLED_NUM 11

#define RGBLIGHT_HUE_STEP  16
#define RGBLIGHT_SAT_STEP  16
#define RGBLIGHT_VAL_STEP  16
#define RGBLIGHT_LIMIT_VAL 255

#define RGBLIGHT_DEFAULT_HUE 132
#define RGBLIGHT_DEFAULT_SAT 102
#define RGBLIGHT_DEFAULT_VAL 50

#define DEFINE_LAYER(hsv) \
	{0, 10, DIM_HSV_AZURE}, { 10, 1, hsv }

#define HSV_LAYER0 DEFINE_LAYER(DIM_HSV_AZURE)
#define HSV_LAYER1 DEFINE_LAYER(HSV_TURQUOISE)
#define HSV_LAYER2 DEFINE_LAYER(HSV_GOLDENROD)

#include "config/reviung.h"
#endif

#ifdef KEYBOARD_crkbd


@@ 55,31 32,9 @@
#endif

#ifdef KEYBOARD_keebio_iris

#define MASTER_LEFT
#undef RGBLIGHT_ANIMATIONS
#define RGBLIGHT_SPLIT

/*
 * These dont' work because keebio has code in the driver to override them
#define RGBLIGHT_DEFAULT_HUE 132
#define RGBLIGHT_DEFAULT_SAT 102
#define RGBLIGHT_DEFAULT_VAL 50
*/

#include "config/iris.h"
#endif


#ifdef KEYBOARD_keebio_foldkb
#ifdef RGBLIGHT_ENABLE
#define RGBLIGHT

#undef RGBLIGHT_DEFAULT_MODE
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_STATIC_LIGHT

#define RGBLIGHT_DEFAULT_HUE 132
#define RGBLIGHT_DEFAULT_SAT 102
#define RGBLIGHT_DEFAULT_VAL 150
#endif

#include "config/foldkb.h"
#endif

A config/foldkb.h => config/foldkb.h +12 -0
@@ 0,0 1,12 @@
#ifdef RGBLIGHT_ENABLE
#define RGBLIGHT

#undef RGBLIGHT_DEFAULT_MODE
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_STATIC_LIGHT

#define RGBLIGHT_DEFAULT_HUE 132
#define RGBLIGHT_DEFAULT_SAT 102
#define RGBLIGHT_DEFAULT_VAL 150
#endif



A config/iris.h => config/iris.h +11 -0
@@ 0,0 1,11 @@
#define MASTER_LEFT
#undef RGBLIGHT_ANIMATIONS
#define RGBLIGHT_SPLIT

/*
 * These dont' work because keebio has code in the driver to override them
#define RGBLIGHT_DEFAULT_HUE 132
#define RGBLIGHT_DEFAULT_SAT 102
#define RGBLIGHT_DEFAULT_VAL 50
*/


A config/reviung.h => config/reviung.h +24 -0
@@ 0,0 1,24 @@
#define RGBLIGHT_LAYERS

#undef RGBLED_NUM

#define RGB_DI_PIN D3
#define RGBLED_NUM 11

#define RGBLIGHT_HUE_STEP  16
#define RGBLIGHT_SAT_STEP  16
#define RGBLIGHT_VAL_STEP  16
#define RGBLIGHT_LIMIT_VAL 255

#define RGBLIGHT_DEFAULT_HUE 132
#define RGBLIGHT_DEFAULT_SAT 102
#define RGBLIGHT_DEFAULT_VAL 50

#define DEFINE_LAYER(hsv) \
	{0, 10, DIM_HSV_AZURE}, { 10, 1, hsv }

#define HSV_LAYER0 DEFINE_LAYER(DIM_HSV_AZURE)
#define HSV_LAYER1 DEFINE_LAYER(HSV_TURQUOISE)
#define HSV_LAYER2 DEFINE_LAYER(HSV_GOLDENROD)