summaryrefslogtreecommitdiffstats
path: root/keyboards/ergodox_ez/config.h
diff options
context:
space:
mode:
authorSeebs <seebs@seebs.net>2017-11-23 22:34:50 +0100
committerSeebs <seebs@seebs.net>2017-11-23 22:37:39 +0100
commit534cd9d45e66b4750d7790fa7230b2108ab3966d (patch)
treef960b986ea73572b02dd56c020c5f80c72f48095 /keyboards/ergodox_ez/config.h
parent2f5bb2506a6c3079ef58f2576ff48e42f0876202 (diff)
downloadqmk_firmware-534cd9d45e66b4750d7790fa7230b2108ab3966d.tar.gz
qmk_firmware-534cd9d45e66b4750d7790fa7230b2108ab3966d.tar.xz
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/config.h')
-rw-r--r--keyboards/ergodox_ez/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/config.h b/keyboards/ergodox_ez/config.h
index bf3ebceb1..81f749dfa 100644
--- a/keyboards/ergodox_ez/config.h
+++ b/keyboards/ergodox_ez/config.h
@@ -61,8 +61,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* number of backlight levels */
#define BACKLIGHT_LEVELS 3
+#ifndef LED_BRIGHTNESS_LO
#define LED_BRIGHTNESS_LO 15
+#endif
+#ifndef LED_BRIGHTNESS_HI
#define LED_BRIGHTNESS_HI 255
+#endif
+#define LED_BRIGHTNESS_DEFAULT (LED_BRIGHTNESS_HI)
/* ws2812 RGB LED */
#define RGB_DI_PIN D7