diff options
author | Seebs <seebs@seebs.net> | 2017-11-23 15:34:50 -0600 |
---|---|---|
committer | Seebs <seebs@seebs.net> | 2017-11-23 15:37:39 -0600 |
commit | 534cd9d45e66b4750d7790fa7230b2108ab3966d (patch) | |
tree | f960b986ea73572b02dd56c020c5f80c72f48095 /keyboards/ergodox_ez/ergodox_ez.h | |
parent | 2f5bb2506a6c3079ef58f2576ff48e42f0876202 (diff) | |
download | qmk_firmware-534cd9d45e66b4750d7790fa7230b2108ab3966d.tar.gz |
Make brightness easier to change
Don't make the #defines unconditional, make them
optional so users can override them with per-keymap
settings more easily.
Diffstat (limited to 'keyboards/ergodox_ez/ergodox_ez.h')
-rw-r--r-- | keyboards/ergodox_ez/ergodox_ez.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/ergodox_ez.h b/keyboards/ergodox_ez/ergodox_ez.h index a6890a70c..4433dbe6d 100644 --- a/keyboards/ergodox_ez/ergodox_ez.h +++ b/keyboards/ergodox_ez/ergodox_ez.h @@ -30,8 +30,12 @@ void ergodox_blink_all_leds(void); uint8_t init_mcp23018(void); uint8_t ergodox_left_leds_update(void); +#ifndef LED_BRIGHTNESS_LO #define LED_BRIGHTNESS_LO 15 +#endif +#ifndef LED_BRIGHTNESS_LO #define LED_BRIGHTNESS_HI 255 +#endif inline void ergodox_board_led_on(void) { DDRD |= (1<<6); PORTD |= (1<<6); } |