Skip to content

Commit

Permalink
Fix boards which were overriding backlight without setting custom (qm…
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Jan 27, 2020
1 parent 43d2a0e commit 9a0245b
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 8 deletions.
12 changes: 7 additions & 5 deletions common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ ifneq ($(strip $(LED_MATRIX_ENABLE)), no)
ifeq ($(filter $(LED_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),)
$(error LED_MATRIX_ENABLE="$(LED_MATRIX_ENABLE)" is not a valid matrix type)
else
OPT_DEFS += -DLED_MATRIX_ENABLE -DBACKLIGHT_ENABLE -DBACKLIGHT_CUSTOM_DRIVER
BACKLIGHT_ENABLE = yes
BACKLIGHT_DRIVER = custom
OPT_DEFS += -DLED_MATRIX_ENABLE
SRC += $(QUANTUM_DIR)/led_matrix.c
SRC += $(QUANTUM_DIR)/led_matrix_drivers.c
endif
Expand Down Expand Up @@ -300,10 +302,6 @@ ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
$(error BACKLIGHT_DRIVER="$(BACKLIGHT_DRIVER)" is not a valid backlight type)
endif

ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
CIE1931_CURVE := yes
endif

COMMON_VPATH += $(QUANTUM_DIR)/backlight
SRC += $(QUANTUM_DIR)/backlight/backlight.c
OPT_DEFS += -DBACKLIGHT_ENABLE
Expand Down Expand Up @@ -343,6 +341,10 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes)
endif
endif

ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
CIE1931_CURVE := yes
endif

ifeq ($(strip $(CIE1931_CURVE)), yes)
OPT_DEFS += -DUSE_CIE1931_CURVE
LED_TABLES := yes
Expand Down
1 change: 1 addition & 0 deletions keyboards/cannonkeys/ortho48/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = yes
BACKLIGHT_DRIVER = custom
RGBLIGHT_ENABLE = yes

LAYOUTS = ortho_4x12
1 change: 1 addition & 0 deletions keyboards/cannonkeys/ortho60/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = yes
BACKLIGHT_DRIVER = custom
RGBLIGHT_ENABLE = yes

LAYOUTS = ortho_5x12
1 change: 1 addition & 0 deletions keyboards/cannonkeys/ortho75/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = yes
BACKLIGHT_DRIVER = custom
RGBLIGHT_ENABLE = yes
ENCODER_ENABLE = yes

Expand Down
1 change: 1 addition & 0 deletions keyboards/cannonkeys/practice60/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = yes
BACKLIGHT_DRIVER = custom
RGBLIGHT_ENABLE = yes

LAYOUTS = 60_ansi
Expand Down
1 change: 1 addition & 0 deletions keyboards/cannonkeys/practice65/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = yes
BACKLIGHT_DRIVER = custom
RGBLIGHT_ENABLE = yes
1 change: 0 additions & 1 deletion keyboards/clueboard/66_hotswap/gen1/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@
*/

#include "hal.h"
#include "backlight.h"
#include "led.h"
#include "printf.h"
1 change: 0 additions & 1 deletion keyboards/clueboard/66_hotswap/gen1/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "timer.h"
#include "wait.h"
#include "printf.h"
#include "backlight.h"
#include "matrix.h"
#include "action.h"
#include "keycode.h"
Expand Down
1 change: 0 additions & 1 deletion keyboards/clueboard/66_hotswap/gen1/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ LED_MATRIX_ENABLE = IS31FL3731
# Build Options
# comment out to disable the options.
#
BACKLIGHT_ENABLE = yes
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
MOUSEKEY_ENABLE = yes # Mouse keys
Expand Down
1 change: 1 addition & 0 deletions keyboards/ergodox_infinity/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ SERIAL_LINK_ENABLE = yes
VISUALIZER_ENABLE = yes
LCD_ENABLE = yes
BACKLIGHT_ENABLE = yes
BACKLIGHT_DRIVER = custom
LCD_BACKLIGHT_ENABLE = yes
MIDI_ENABLE = no
RGBLIGHT_ENABLE = no
Expand Down
1 change: 1 addition & 0 deletions keyboards/whitefox/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
NKRO_ENABLE = yes # USB Nkey Rollover
CUSTOM_MATRIX = yes # Custom matrix file
BACKLIGHT_ENABLE = yes
BACKLIGHT_DRIVER = custom
VISUALIZER_ENABLE = yes

LED_DRIVER = is31fl3731c
Expand Down

0 comments on commit 9a0245b

Please sign in to comment.