mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-26 02:58:06 +06:00
rgblight fixes
This commit is contained in:
parent
cefa8468fb
commit
f25596b8dc
@ -3,8 +3,8 @@
|
||||
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
RGBLIGHT_ENABLE = yes
|
||||
MIDI_ENABLE = yes
|
||||
RGBLIGHT_ENABLE ?= yes
|
||||
MIDI_ENABLE ?= yes
|
||||
|
||||
ifndef QUANTUM_DIR
|
||||
include ../../../../Makefile
|
||||
|
@ -164,9 +164,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
// dynamically generate these.
|
||||
case RGB_FF00BB:
|
||||
if (record->event.pressed) {
|
||||
rgblight_enable();
|
||||
rgblight_mode(1);
|
||||
rgblight_setrgb(0xff,0x00,0xbb);
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
rgblight_enable();
|
||||
rgblight_mode(1);
|
||||
rgblight_setrgb(0xff,0x00,0xbb);
|
||||
#endif
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
|
@ -1055,7 +1055,7 @@ int main(void)
|
||||
// MIDI_Task();
|
||||
#endif
|
||||
|
||||
#ifdef RGBLIGHT_ANIMATIONS
|
||||
#if defined(RGBLIGHT_ANIMATIONS) & defined(RGBLIGHT_ENABLE)
|
||||
rgblight_task();
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user