fl16: Make sure build without RGB is possible

Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
Daniel Schaefer 2023-11-24 15:31:45 +08:00
parent 11a70a11ed
commit 5af87007aa
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#include QMK_KEYBOARD_H
#if defined(RGB_MATRIX_ENABLE)
#define CS19_SW12 0x00
#define CS20_SW12 0x01
#define CS21_SW12 0x02
@ -412,3 +413,4 @@ led_config_t g_led_config = { {
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4
} };
#endif

View File

@ -3,6 +3,7 @@
#include QMK_KEYBOARD_H
#if defined(RGB_MATRIX_ENABLE)
const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
/* Refer to IS31 manual for these locations
* driver
@ -79,6 +80,7 @@ led_config_t g_led_config = { {
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4
} };
#endif
void keyboard_post_init_user(void) {
// Sync initial numlock state from the host