Properly fix i2c leds for ergodox shine (#356)

This commit is contained in:
Drashna Jaelre
2022-08-04 17:32:04 -07:00
committed by GitHub
parent e14aa9223b
commit b6657f6a7b
2 changed files with 25 additions and 21 deletions

View File

@@ -64,7 +64,7 @@ static void select_row(uint8_t row);
static uint8_t mcp23018_reset_loop;
#ifdef RGBLIGHT_ENABLE
extern i2c_status_t i2c_rgblight;
extern bool i2c_rgblight;
#endif
void matrix_init_custom(void) {
@@ -101,7 +101,8 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) {
rgb_matrix_init(); // re-init driver on reconnect
#endif
#ifdef RGBLIGHT_ENABLE
i2c_rgblight = 0x20; // re-enable rgb light
i2c_rgblight = true; // re-enable rgb light
rgblight_init();
#endif
}
}