diff options
-rw-r--r-- | common_features.mk | 5 | ||||
-rw-r--r-- | docs/cli_commands.md | 2 | ||||
-rw-r--r-- | docs/feature_rgblight.md | 4 | ||||
-rw-r--r-- | keyboards/mxss/rules.mk | 26 | ||||
-rw-r--r-- | quantum/rgblight/rgblight.c (renamed from quantum/rgblight.c) | 2 | ||||
-rw-r--r-- | quantum/rgblight/rgblight.h (renamed from quantum/rgblight.h) | 0 | ||||
-rw-r--r-- | quantum/rgblight/rgblight_breathe_table.h (renamed from quantum/rgblight_breathe_table.h) | 0 | ||||
-rw-r--r-- | quantum/rgblight/rgblight_modes.h (renamed from quantum/rgblight_modes.h) | 0 | ||||
-rw-r--r-- | quantum/rgblight/rgblight_post_config.h (renamed from quantum/rgblight_post_config.h) | 0 |
9 files changed, 16 insertions, 23 deletions
diff --git a/common_features.mk b/common_features.mk index 9373d1de2..2d3f00d21 100644 --- a/common_features.mk +++ b/common_features.mk | |||
@@ -196,10 +196,11 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) | |||
196 | ifeq ($(filter $(RGBLIGHT_DRIVER),$(VALID_RGBLIGHT_TYPES)),) | 196 | ifeq ($(filter $(RGBLIGHT_DRIVER),$(VALID_RGBLIGHT_TYPES)),) |
197 | $(error RGBLIGHT_DRIVER="$(RGBLIGHT_DRIVER)" is not a valid RGB type) | 197 | $(error RGBLIGHT_DRIVER="$(RGBLIGHT_DRIVER)" is not a valid RGB type) |
198 | else | 198 | else |
199 | POST_CONFIG_H += $(QUANTUM_DIR)/rgblight_post_config.h | 199 | COMMON_VPATH += $(QUANTUM_DIR)/rgblight |
200 | POST_CONFIG_H += $(QUANTUM_DIR)/rgblight/rgblight_post_config.h | ||
200 | OPT_DEFS += -DRGBLIGHT_ENABLE | 201 | OPT_DEFS += -DRGBLIGHT_ENABLE |
201 | SRC += $(QUANTUM_DIR)/color.c | 202 | SRC += $(QUANTUM_DIR)/color.c |
202 | SRC += $(QUANTUM_DIR)/rgblight.c | 203 | SRC += $(QUANTUM_DIR)/rgblight/rgblight.c |
203 | CIE1931_CURVE := yes | 204 | CIE1931_CURVE := yes |
204 | RGB_KEYCODES_ENABLE := yes | 205 | RGB_KEYCODES_ENABLE := yes |
205 | endif | 206 | endif |
diff --git a/docs/cli_commands.md b/docs/cli_commands.md index 581342093..e30593daa 100644 --- a/docs/cli_commands.md +++ b/docs/cli_commands.md | |||
@@ -368,7 +368,7 @@ qmk generate-docs | |||
368 | 368 | ||
369 | ## `qmk generate-rgb-breathe-table` | 369 | ## `qmk generate-rgb-breathe-table` |
370 | 370 | ||
371 | This command generates a lookup table (LUT) header file for the [RGB Lighting](feature_rgblight.md) feature's breathing animation. Place this file in your keyboard or keymap directory as `rgblight_breathe_table.h` to override the default LUT in `quantum/`. | 371 | This command generates a lookup table (LUT) header file for the [RGB Lighting](feature_rgblight.md) feature's breathing animation. Place this file in your keyboard or keymap directory as `rgblight_breathe_table.h` to override the default LUT in `quantum/rgblight/`. |
372 | 372 | ||
373 | **Usage**: | 373 | **Usage**: |
374 | 374 | ||
diff --git a/docs/feature_rgblight.md b/docs/feature_rgblight.md index 994a014a2..0e75411f0 100644 --- a/docs/feature_rgblight.md +++ b/docs/feature_rgblight.md | |||
@@ -119,7 +119,7 @@ if `RGBLIGHT_EFFECT_xxxx` or `RGBLIGHT_ANIMATIONS` is defined, you also have a n | |||
119 | 119 | ||
120 | Check out [this video](https://youtube.com/watch?v=VKrpPAHlisY) for a demonstration. | 120 | Check out [this video](https://youtube.com/watch?v=VKrpPAHlisY) for a demonstration. |
121 | 121 | ||
122 | Note: For versions older than 0.6.117, The mode numbers were written directly. In `quantum/rgblight.h` there is a contrast table between the old mode number and the current symbol. | 122 | Note: For versions older than 0.6.117, The mode numbers were written directly. In `quantum/rgblight/rgblight.h` there is a contrast table between the old mode number and the current symbol. |
123 | 123 | ||
124 | ### Effect and Animation Toggles | 124 | ### Effect and Animation Toggles |
125 | 125 | ||
@@ -328,7 +328,7 @@ Normally lighting layers are not shown when RGB Lighting is disabled (e.g. with | |||
328 | 328 | ||
329 | ## Functions | 329 | ## Functions |
330 | 330 | ||
331 | If you need to change your RGB lighting in code, for example in a macro to change the color whenever you switch layers, QMK provides a set of functions to assist you. See [`rgblight.h`](https://github.com/qmk/qmk_firmware/blob/master/quantum/rgblight.h) for the full list, but the most commonly used functions include: | 331 | If you need to change your RGB lighting in code, for example in a macro to change the color whenever you switch layers, QMK provides a set of functions to assist you. See [`rgblight.h`](https://github.com/qmk/qmk_firmware/blob/master/quantum/rgblight/rgblight.h) for the full list, but the most commonly used functions include: |
332 | 332 | ||
333 | ### Utility Functions | 333 | ### Utility Functions |
334 | |Function |Description | | 334 | |Function |Description | |
diff --git a/keyboards/mxss/rules.mk b/keyboards/mxss/rules.mk index 7dc98d473..40de15828 100644 --- a/keyboards/mxss/rules.mk +++ b/keyboards/mxss/rules.mk | |||
@@ -2,39 +2,31 @@ | |||
2 | MCU = atmega32u4 | 2 | MCU = atmega32u4 |
3 | 3 | ||
4 | # Bootloader selection | 4 | # Bootloader selection |
5 | # Teensy halfkay | ||
6 | # Pro Micro caterina | ||
7 | # Atmel DFU atmel-dfu | ||
8 | # LUFA DFU lufa-dfu | ||
9 | # QMK DFU qmk-dfu | ||
10 | # ATmega32A bootloadHID | ||
11 | # ATmega328P USBasp | ||
12 | BOOTLOADER = atmel-dfu | 5 | BOOTLOADER = atmel-dfu |
13 | 6 | ||
14 | # Build Options | 7 | # Build Options |
15 | # change yes to no to disable | 8 | # change yes to no to disable |
16 | # | 9 | # |
17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration |
18 | MOUSEKEY_ENABLE = yes # Mouse keys | 11 | MOUSEKEY_ENABLE = yes # Mouse keys |
19 | EXTRAKEY_ENABLE = yes # Audio control and System control | 12 | EXTRAKEY_ENABLE = yes # Audio control and System control |
20 | CONSOLE_ENABLE = no # Console for debug | 13 | CONSOLE_ENABLE = no # Console for debug |
21 | COMMAND_ENABLE = yes # Commands for debug and configuration | 14 | COMMAND_ENABLE = yes # Commands for debug and configuration |
22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
25 | NKRO_ENABLE = no # USB Nkey Rollover | 18 | NKRO_ENABLE = no # USB Nkey Rollover |
26 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
27 | MIDI_ENABLE = no # MIDI support | 20 | BLUETOOTH_ENABLE = no # Enable Bluetooth |
28 | UNICODE_ENABLE = no # Unicode | 21 | AUDIO_ENABLE = no # Audio output |
29 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
30 | AUDIO_ENABLE = no # Audio output on port C6 | ||
31 | 22 | ||
32 | SRC += mxss_frontled.c | 23 | SRC += mxss_frontled.c |
33 | 24 | ||
34 | # Remove the common RGB light code and use my iteration instead | 25 | # Remove the common RGB light code and use my iteration instead |
26 | COMMON_VPATH += $(QUANTUM_DIR)/rgblight | ||
35 | OPT_DEFS += -DRGBLIGHT_ENABLE | 27 | OPT_DEFS += -DRGBLIGHT_ENABLE |
36 | SRC += $(QUANTUM_DIR)/process_keycode/process_rgb.c | ||
37 | SRC += rgblight.c | 28 | SRC += rgblight.c |
38 | SRC += color.c | 29 | SRC += $(QUANTUM_DIR)/color.c |
39 | SRC += ws2812.c | 30 | WS2812_DRIVER_REQUIRED = yes |
40 | CIE1931_CURVE = yes | 31 | CIE1931_CURVE = yes |
32 | RGB_KEYCODES_ENABLE = yes | ||
diff --git a/quantum/rgblight.c b/quantum/rgblight/rgblight.c index baa10ec41..54face173 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight/rgblight.c | |||
@@ -890,7 +890,7 @@ void rgblight_update_sync(rgblight_syncinfo_t *syncinfo, bool write_to_eeprom) { | |||
890 | animation_status.restart = true; | 890 | animation_status.restart = true; |
891 | } | 891 | } |
892 | # endif /* RGBLIGHT_SPLIT_NO_ANIMATION_SYNC */ | 892 | # endif /* RGBLIGHT_SPLIT_NO_ANIMATION_SYNC */ |
893 | # endif /* RGBLIGHT_USE_TIMER */ | 893 | # endif /* RGBLIGHT_USE_TIMER */ |
894 | } | 894 | } |
895 | #endif /* RGBLIGHT_SPLIT */ | 895 | #endif /* RGBLIGHT_SPLIT */ |
896 | 896 | ||
diff --git a/quantum/rgblight.h b/quantum/rgblight/rgblight.h index bec2c6695..bec2c6695 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight/rgblight.h | |||
diff --git a/quantum/rgblight_breathe_table.h b/quantum/rgblight/rgblight_breathe_table.h index 30245318b..30245318b 100644 --- a/quantum/rgblight_breathe_table.h +++ b/quantum/rgblight/rgblight_breathe_table.h | |||
diff --git a/quantum/rgblight_modes.h b/quantum/rgblight/rgblight_modes.h index 7abdb87bc..7abdb87bc 100644 --- a/quantum/rgblight_modes.h +++ b/quantum/rgblight/rgblight_modes.h | |||
diff --git a/quantum/rgblight_post_config.h b/quantum/rgblight/rgblight_post_config.h index 3c14cb610..3c14cb610 100644 --- a/quantum/rgblight_post_config.h +++ b/quantum/rgblight/rgblight_post_config.h | |||