diff options
author | Yu He <yuhe00@gmail.com> | 2017-08-12 17:15:24 +0200 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-08-16 17:31:12 -0400 |
commit | cb74c8dc4613518600183213e197fe90a87f0e6f (patch) | |
tree | 1feb1c886ec05475db6c7a32552d2bba0338ff78 /keyboards/ergodox/ergodone | |
parent | 52f4a38cb39e3640e0479b794815eae38a49f503 (diff) |
Add dummy backlight/LED functions for keymaps that require them
Diffstat (limited to 'keyboards/ergodox/ergodone')
-rw-r--r-- | keyboards/ergodox/ergodone/config.h | 6 | ||||
-rw-r--r-- | 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( \ \ |