Skip to content

Commit

Permalink
Add dummy backlight/LED functions for keymaps that require them
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhe00 authored and jackhumbert committed Aug 16, 2017
1 parent 52f4a38 commit cb74c8d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
6 changes: 6 additions & 0 deletions keyboards/ergodox/ergodone/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
25 changes: 17 additions & 8 deletions keyboards/ergodox/ergodone/ergodone.h
Original file line number Diff line number Diff line change
Expand Up @@ -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( \
\
Expand Down

0 comments on commit cb74c8d

Please sign in to comment.