1
0
Fork 0

Fix compile issues due to LED changes (#13821)

This commit is contained in:
Drashna Jaelre 2021-07-31 09:30:13 -07:00 committed by GitHub
parent 70fb3e1aaf
commit 7bcbeffc2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 135 additions and 135 deletions

View file

@ -21,7 +21,7 @@
#include <string.h> #include <string.h>
#include "quantum.h" #include "quantum.h"
#include "rgblight.h" #include "rgblight.h"
#include "issi/is31fl3731.h" #include "drivers/led/issi/is31fl3731.h"
#include "i2c_master.h" #include "i2c_master.h"

View file

@ -18,8 +18,7 @@
#ifdef RGB_MATRIX_ENABLE #ifdef RGB_MATRIX_ENABLE
const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
{0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */ {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */
{0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */ {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */
{0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */ {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */

View file

@ -15,7 +15,7 @@
*/ */
#include "ranger.h" #include "ranger.h"
#ifdef RGB_MATRIX_ENABLE #ifdef RGB_MATRIX_ENABLE
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
{0, C3_3, C2_3, C1_3}, // L01 {0, C3_3, C2_3, C1_3}, // L01
{0, C3_4, C2_4, C1_4}, // L02 {0, C3_4, C2_4, C1_4}, // L02
@ -108,10 +108,10 @@
{2, C9_10, C8_10, C7_10}, // L84 {2, C9_10, C8_10, C7_10}, // L84
{2, C9_11, C8_11, C7_11}, // L85 {2, C9_11, C8_11, C7_11}, // L85
{2, C9_12, C8_12, C7_12}, // L86 {2, C9_12, C8_12, C7_12}, // L86
{2, C9_13, C8_13, C7_13}, // L87 {2, C9_13, C8_13, C7_13}, // L87n
}; };
// clang-format off
led_config_t g_led_config = { { led_config_t g_led_config = { {
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }, { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
{ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 }, { 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 },
@ -133,8 +133,9 @@
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
} }; }
};
// clang-format on
__attribute__((weak)) void rgb_matrix_indicators_user(void) { __attribute__((weak)) void rgb_matrix_indicators_user(void) {
if (host_keyboard_led_state().caps_lock) { if (host_keyboard_led_state().caps_lock) {