lotus: Fix building with RGB matrix
Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
parent
34ed8e9d3b
commit
01866088a5
@ -43,7 +43,7 @@ typedef struct is31_led {
|
||||
uint8_t b;
|
||||
} __attribute__((packed)) is31_led;
|
||||
|
||||
extern const is31_led __flash g_is31_leds[RGB_MATRIX_LED_COUNT];
|
||||
extern const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT];
|
||||
|
||||
#elif defined(LED_MATRIX_ENABLE)
|
||||
typedef struct is31_led {
|
||||
|
@ -61,16 +61,17 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
)
|
||||
};
|
||||
|
||||
//// TODO: Need to define the LED matrix.
|
||||
//const is31_led __flash g_is31_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
///* Refer to IS31 manual for these locations
|
||||
// * driver
|
||||
// * | R location
|
||||
// * | | G location
|
||||
// * | | | B location
|
||||
// * | | | | */
|
||||
// {0, CS1_SW1, CS2_SW1, CS3_SW1},
|
||||
//}
|
||||
// TODO: Need to define the LED matrix.
|
||||
// TODO: Should have attribute __flash. But won't compile if I add it
|
||||
const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
/* Refer to IS31 manual for these locations
|
||||
* driver
|
||||
* | R location
|
||||
* | | G location
|
||||
* | | | B location
|
||||
* | | | | */
|
||||
{0, CS1_SW1, CS2_SW1, CS3_SW1}
|
||||
};
|
||||
|
||||
led_config_t g_led_config = { {
|
||||
// Key Matrix to LED Index
|
||||
|
@ -8,8 +8,7 @@ SERIAL_DRIVER = vendor
|
||||
BACKLIGHT_ENABLE = yes
|
||||
BACKLIGHT_DRIVER = pwm
|
||||
|
||||
# TODO: Enable RGB matrix for one variant
|
||||
RGB_MATRIX_ENABLE = no
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
RGB_MATRIX_DRIVER = IS31FL3745
|
||||
|
||||
# Custom matrix scanning code via ADC
|
||||
|
Loading…
Reference in New Issue
Block a user