diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-04-01 17:43:38 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2017-04-09 18:34:59 +0300 |
commit | f113f95440f8cd7377930868656caf515dbd609c (patch) | |
tree | c5cc985994fc17b8344605d83769882416f7cec4 /build_keyboard.mk | |
parent | bc97413bf70b1906b387dea35bb22575ec57eff8 (diff) | |
download | qmk_firmware-f113f95440f8cd7377930868656caf515dbd609c.tar.gz |
Move CIE1931 and breathing tables to its own file
Diffstat (limited to 'build_keyboard.mk')
-rw-r--r-- | build_keyboard.mk | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk index ad92892e2..79d2b6b0f 100644 --- a/build_keyboard.mk +++ b/build_keyboard.mk @@ -196,6 +196,8 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) OPT_DEFS += -DRGBLIGHT_ENABLE SRC += $(QUANTUM_DIR)/light_ws2812.c SRC += $(QUANTUM_DIR)/rgblight.c + CIE1931_CURVE = yes + LED_BREATHING_TABLE = yes endif ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) @@ -223,6 +225,27 @@ ifneq ($(strip $(MAX_VARIABLE_TRACE_SIZE)),) endif endif +ifeq ($(strip $(LCD_ENABLE)), yes) +CIE1931_CURVE = yes +endif + +ifeq ($(strip $(LED_ENABLE)), yes) +CIE1931_CURVE = yes +endif + +ifeq ($(strip $(CIE1931_CURVE)), yes) + OPT_DEFS += -DUSE_CIE1931_CURVE + LED_TABLES = yes +endif +ifeq ($(strip $(LED_BREATHING_TABLE)), yes) + OPT_DEFS += -DUSE_LED_BREATHING_TABLE + LED_TABLES = yes +endif + +ifeq ($(strip $(LED_TABLES)), yes) + SRC += $(QUANTUM_DIR)/led_tables.c +endif + # Optimize size but this may cause error "relocation truncated to fit" #EXTRALDFLAGS = -Wl,--relax |