summaryrefslogtreecommitdiffstats
path: root/keyboards/ergodox
diff options
context:
space:
mode:
authorYu He <yuhe00@gmail.com>2017-08-12 17:15:24 +0200
committerJack Humbert <jack.humb@gmail.com>2017-08-16 23:31:12 +0200
commitcb74c8dc4613518600183213e197fe90a87f0e6f (patch)
tree1feb1c886ec05475db6c7a32552d2bba0338ff78 /keyboards/ergodox
parent52f4a38cb39e3640e0479b794815eae38a49f503 (diff)
downloadqmk_firmware-cb74c8dc4613518600183213e197fe90a87f0e6f.tar.gz
qmk_firmware-cb74c8dc4613518600183213e197fe90a87f0e6f.tar.xz
Add dummy backlight/LED functions for keymaps that require them
Diffstat (limited to 'keyboards/ergodox')
-rw-r--r--keyboards/ergodox/ergodone/config.h6
-rw-r--r--keyboards/ergodox/ergodone/ergodone.h25
2 files changed, 23 insertions, 8 deletions
diff --git a/keyboards/ergodox/ergodone/config.h b/keyboards/ergodox/ergodone/config.h
index 80ff47f66..52ae2d576 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 21ef9d3e3..cddc1fbe7 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( \
\