From cb74c8dc4613518600183213e197fe90a87f0e6f Mon Sep 17 00:00:00 2001 From: Yu He Date: Sat, 12 Aug 2017 17:15:24 +0200 Subject: Add dummy backlight/LED functions for keymaps that require them --- keyboards/ergodox/ergodone/config.h | 6 ++++++ keyboards/ergodox/ergodone/ergodone.h | 25 +++++++++++++++++-------- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/keyboards/ergodox/ergodone/config.h b/keyboards/ergodox/ergodone/config.h index 80ff47f661..52ae2d576c 100644 --- a/keyboards/ergodox/ergodone/config.h +++ b/keyboards/ergodox/ergodone/config.h @@ -17,6 +17,12 @@ #define MATRIX_ROWS 6 #define MATRIX_COLS 14 +/* number of backlight levels */ +#define BACKLIGHT_LEVELS 3 + +#define LED_BRIGHTNESS_LO 15 +#define LED_BRIGHTNESS_HI 255 + /* fix space cadet rollover issue */ #define DISABLE_SPACE_CADET_ROLLOVER diff --git a/keyboards/ergodox/ergodone/ergodone.h b/keyboards/ergodox/ergodone/ergodone.h index 21ef9d3e31..cddc1fbe7a 100644 --- a/keyboards/ergodox/ergodone/ergodone.h +++ b/keyboards/ergodox/ergodone/ergodone.h @@ -10,14 +10,23 @@ void init_ergodox(void); -inline void ergodox_right_led_1_off(void) {} -inline void ergodox_right_led_1_on(void) {} -inline void ergodox_right_led_2_off(void) {} -inline void ergodox_right_led_2_on(void) {} -inline void ergodox_right_led_3_off(void) {} -inline void ergodox_right_led_3_on(void) {} -inline void ergodox_board_led_off(void) {} -inline void ergodox_board_led_on(void) {} +inline void ergodox_right_led_1_off(void) {} +inline void ergodox_right_led_1_on(void) {} +inline void ergodox_right_led_2_off(void) {} +inline void ergodox_right_led_2_on(void) {} +inline void ergodox_right_led_3_off(void) {} +inline void ergodox_right_led_3_on(void) {} +inline void ergodox_right_led_on(uint8_t l) {} +inline void ergodox_right_led_off(uint8_t l) {} +inline void ergodox_board_led_off(void) {} +inline void ergodox_board_led_on(void) {} +inline void ergodox_led_all_on(void) {} +inline void ergodox_led_all_off(void) {} +inline void ergodox_right_led_1_set(uint8_t n) {} +inline void ergodox_right_led_2_set(uint8_t n) {} +inline void ergodox_right_led_3_set(uint8_t n) {} +inline void ergodox_right_led_set(uint8_t l, uint8_t n) {} +inline void ergodox_led_all_set(uint8_t n) {} #define KEYMAP( \ \ -- cgit v1.2.1