diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-06-03 14:34:50 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2017-06-03 14:34:50 +0300 |
commit | a916f4e8b897b6b8925d7113d84f9eac7e7b67be (patch) | |
tree | 19131f31ecd9ccb8fb5672caf1b5ef652f4f88f1 | |
parent | aaa67f69305c5c78e15a1090ba7058adea59ff36 (diff) | |
download | qmk_firmware-a916f4e8b897b6b8925d7113d84f9eac7e7b67be.tar.gz qmk_firmware-a916f4e8b897b6b8925d7113d84f9eac7e7b67be.zip |
Let BACKLIGHT_ENABLE control the Infinity LEDs
-rw-r--r-- | build_keyboard.mk | 6 | ||||
-rw-r--r-- | keyboards/ergodox/infinity/animations.c | 4 | ||||
-rw-r--r-- | keyboards/ergodox/infinity/rules.mk | 9 | ||||
-rw-r--r-- | keyboards/ergodox/keymaps/333fred/Makefile | 2 | ||||
-rw-r--r-- | quantum/visualizer/visualizer.c | 4 | ||||
-rw-r--r-- | quantum/visualizer/visualizer.mk | 3 |
6 files changed, 12 insertions, 16 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk index 9fa8c3126..36eab3a9e 100644 --- a/build_keyboard.mk +++ b/build_keyboard.mk | |||
@@ -233,8 +233,10 @@ ifeq ($(strip $(LCD_ENABLE)), yes) | |||
233 | CIE1931_CURVE = yes | 233 | CIE1931_CURVE = yes |
234 | endif | 234 | endif |
235 | 235 | ||
236 | ifeq ($(strip $(LED_ENABLE)), yes) | 236 | ifeq ($(strip $(BACKLIGHT_ENABLE)), yes) |
237 | CIE1931_CURVE = yes | 237 | ifeq ($(strip $(VISUALIZER_ENABLE)), yes) |
238 | CIE1931_CURVE = yes | ||
239 | endif | ||
238 | endif | 240 | endif |
239 | 241 | ||
240 | ifeq ($(strip $(CIE1931_CURVE)), yes) | 242 | ifeq ($(strip $(CIE1931_CURVE)), yes) |
diff --git a/keyboards/ergodox/infinity/animations.c b/keyboards/ergodox/infinity/animations.c index 4c9f6d9c8..0e732b741 100644 --- a/keyboards/ergodox/infinity/animations.c +++ b/keyboards/ergodox/infinity/animations.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include "lcd_backlight_keyframes.h" | 25 | #include "lcd_backlight_keyframes.h" |
26 | #endif | 26 | #endif |
27 | 27 | ||
28 | #ifdef LED_ENABLE | 28 | #ifdef BACKLIGHT_ENABLE |
29 | #include "led_keyframes.h" | 29 | #include "led_keyframes.h" |
30 | #endif | 30 | #endif |
31 | 31 | ||
@@ -61,7 +61,7 @@ keyframe_animation_t default_suspend_animation = { | |||
61 | }; | 61 | }; |
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | #if defined(LED_ENABLE) | 64 | #if defined(BACKLIGHT_ENABLE) |
65 | #define CROSSFADE_TIME 1000 | 65 | #define CROSSFADE_TIME 1000 |
66 | #define GRADIENT_TIME 3000 | 66 | #define GRADIENT_TIME 3000 |
67 | 67 | ||
diff --git a/keyboards/ergodox/infinity/rules.mk b/keyboards/ergodox/infinity/rules.mk index 9e6170d89..af29ebce8 100644 --- a/keyboards/ergodox/infinity/rules.mk +++ b/keyboards/ergodox/infinity/rules.mk | |||
@@ -62,15 +62,10 @@ CUSTOM_MATRIX ?= yes # Custom matrix file | |||
62 | SERIAL_LINK_ENABLE = yes | 62 | SERIAL_LINK_ENABLE = yes |
63 | VISUALIZER_ENABLE ?= yes | 63 | VISUALIZER_ENABLE ?= yes |
64 | LCD_ENABLE ?= yes | 64 | LCD_ENABLE ?= yes |
65 | LED_ENABLE ?= no | 65 | BACKLIGHT_ENABLE ?= yes |
66 | LCD_BACKLIGHT_ENABLE ?= yes | 66 | LCD_BACKLIGHT_ENABLE ?= yes |
67 | MIDI_ENABLE = no | 67 | MIDI_ENABLE = no |
68 | RGBLIGHT_ENABLE = no | 68 | RGBLIGHT_ENABLE = no |
69 | 69 | ||
70 | ifdef LCD_ENABLE | ||
71 | include $(SUBPROJECT_PATH)/drivers/gdisp/st7565ergodox/driver.mk | 70 | include $(SUBPROJECT_PATH)/drivers/gdisp/st7565ergodox/driver.mk |
72 | endif | 71 | include $(SUBPROJECT_PATH)/drivers/gdisp/IS31FL3731C/driver.mk \ No newline at end of file |
73 | |||
74 | ifdef LED_ENABLE | ||
75 | include $(SUBPROJECT_PATH)/drivers/gdisp/IS31FL3731C/driver.mk | ||
76 | endif \ No newline at end of file | ||
diff --git a/keyboards/ergodox/keymaps/333fred/Makefile b/keyboards/ergodox/keymaps/333fred/Makefile index 87985bda1..b977722a2 100644 --- a/keyboards/ergodox/keymaps/333fred/Makefile +++ b/keyboards/ergodox/keymaps/333fred/Makefile | |||
@@ -1,7 +1,7 @@ | |||
1 | SUBPROJECT_DEFAULT = infinity | 1 | SUBPROJECT_DEFAULT = infinity |
2 | LCD_BACKLIGHT_ENABLE = yes | 2 | LCD_BACKLIGHT_ENABLE = yes |
3 | LCD_ENABLE = yes | 3 | LCD_ENABLE = yes |
4 | LED_ENABLE = yes | 4 | BACKLIGHT_ENABLE = yes |
5 | BACKLIGHT_ENABLE = yes | 5 | BACKLIGHT_ENABLE = yes |
6 | NKRO_ENABLE = yes | 6 | NKRO_ENABLE = yes |
7 | TAP_DANCE_ENABLE = yes | 7 | TAP_DANCE_ENABLE = yes |
diff --git a/quantum/visualizer/visualizer.c b/quantum/visualizer/visualizer.c index 6f134097f..cd2dff6a6 100644 --- a/quantum/visualizer/visualizer.c +++ b/quantum/visualizer/visualizer.c | |||
@@ -309,7 +309,7 @@ static DECLARE_THREAD_FUNCTION(visualizerThread, arg) { | |||
309 | update_keyframe_animation(animations[i], &state, delta, &sleep_time); | 309 | update_keyframe_animation(animations[i], &state, delta, &sleep_time); |
310 | } | 310 | } |
311 | } | 311 | } |
312 | #ifdef LED_ENABLE | 312 | #ifdef BACKLIGHT_ENABLE |
313 | gdispGFlush(LED_DISPLAY); | 313 | gdispGFlush(LED_DISPLAY); |
314 | #endif | 314 | #endif |
315 | 315 | ||
@@ -372,7 +372,7 @@ void visualizer_init(void) { | |||
372 | #ifdef LCD_ENABLE | 372 | #ifdef LCD_ENABLE |
373 | LCD_DISPLAY = get_lcd_display(); | 373 | LCD_DISPLAY = get_lcd_display(); |
374 | #endif | 374 | #endif |
375 | #ifdef LED_ENABLE | 375 | #ifdef BACKLIGHT_ENABLE |
376 | LED_DISPLAY = get_led_display(); | 376 | LED_DISPLAY = get_led_display(); |
377 | #endif | 377 | #endif |
378 | 378 | ||
diff --git a/quantum/visualizer/visualizer.mk b/quantum/visualizer/visualizer.mk index 5f710124b..6f97603bd 100644 --- a/quantum/visualizer/visualizer.mk +++ b/quantum/visualizer/visualizer.mk | |||
@@ -42,9 +42,8 @@ SRC += $(VISUALIZER_DIR)/resources/lcd_logo.c | |||
42 | OPT_DEFS += -DLCD_BACKLIGHT_ENABLE | 42 | OPT_DEFS += -DLCD_BACKLIGHT_ENABLE |
43 | endif | 43 | endif |
44 | 44 | ||
45 | ifeq ($(strip $(LED_ENABLE)), yes) | 45 | ifeq ($(strip $(BACKLIGHT_ENABLE)), yes) |
46 | SRC += $(VISUALIZER_DIR)/led_keyframes.c | 46 | SRC += $(VISUALIZER_DIR)/led_keyframes.c |
47 | OPT_DEFS += -DLED_ENABLE | ||
48 | endif | 47 | endif |
49 | 48 | ||
50 | include $(GFXLIB)/gfx.mk | 49 | include $(GFXLIB)/gfx.mk |