From 426c03eda0deb62d916498fbdd671c7d3532b9e4 Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Fri, 15 Nov 2019 03:55:46 +0800 Subject: [Keyboard] add kbdmini; dztech, kbdfans keyboards cleanup (#7223) * add kbdmini, dztech and kbdfans keyboards small fix * Caps lock indicator moved from keymap * Update dz65rgb.c * fix error * fix matthewrobo keymap error * Update keyboards/kbdfans/kbd67/mkiirgb/mkiirgb.c Co-Authored-By: fauxpark * Update keyboards/dztech/dz60rgb/dz60rgb.c Co-Authored-By: fauxpark * Update keyboards/dztech/dz60rgb_ansi/dz60rgb_ansi.c Co-Authored-By: fauxpark * Update keyboards/dztech/dz60rgb_wkl/dz60rgb_wkl.c Co-Authored-By: fauxpark * Update keyboards/dztech/dz65rgb/dz65rgb.c Co-Authored-By: fauxpark * wrap all of the g_led_config stuff and rgb matrix functions in ifdefs wrap all of the g_led_config stuff and rgb matrix functions in ifdefs --- keyboards/xbows/knight/config.h | 2 ++ keyboards/xbows/woody/config.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'keyboards/xbows') diff --git a/keyboards/xbows/knight/config.h b/keyboards/xbows/knight/config.h index 6dc32db48e..1e561642f7 100644 --- a/keyboards/xbows/knight/config.h +++ b/keyboards/xbows/knight/config.h @@ -24,8 +24,10 @@ /* number of backlight levels */ // #define BACKLIGHT_LEVELS 3 #define BACKLIGHT_PIN B7 +#ifdef BACKLIGHT_PIN #define BACKLIGHT_BREATHING #define BACKLIGHT_LEVELS 3 +#endif /* Set 0 if debouncing isn't needed */ #define DEBOUNCE 5 diff --git a/keyboards/xbows/woody/config.h b/keyboards/xbows/woody/config.h index bf59031376..985f3acb16 100644 --- a/keyboards/xbows/woody/config.h +++ b/keyboards/xbows/woody/config.h @@ -12,7 +12,7 @@ #define MATRIX_ROW_PINS {B3, B2, B1, B0, B5 } #define MATRIX_COL_PINS {B6, C6, C7, F4, F5, F6, F7, B7, D2, D3, D5, D4, D6, D7, B4 } #define DIODE_DIRECTION COL2ROW - +#ifdef RGB_MATRIX_ENABLE #define RGB_MATRIX_LED_PROCESS_LIMIT 4 #define RGB_MATRIX_LED_FLUSH_LIMIT 26 #define DEBOUNCE 3 @@ -41,3 +41,4 @@ #define DRIVER_1_LED_TOTAL 35 #define DRIVER_2_LED_TOTAL 32 #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) +#endif \ No newline at end of file -- cgit v1.2.3