1
0

[Bugfix] WS2812 indexing in split boards (#25407)

* initial

* oops

* Update quantum/rgb_matrix/rgb_matrix.c

Co-authored-by: フィルターペーパー <76888457+filterpaper@users.noreply.github.com>

---------

Co-authored-by: フィルターペーパー <76888457+filterpaper@users.noreply.github.com>
This commit is contained in:
Pablo Martínez
2026-01-11 02:00:36 +01:00
committed by GitHub
parent f8d65460c2
commit fe1c3fc835
2 changed files with 27 additions and 3 deletions

View File

@@ -151,6 +151,14 @@ void eeconfig_force_flush_rgb_matrix(void);
uint8_t rgb_matrix_map_row_column_to_led_kb(uint8_t row, uint8_t column, uint8_t *led_i);
uint8_t rgb_matrix_map_row_column_to_led(uint8_t row, uint8_t column, uint8_t *led_i);
/**
* @brief Convert an index to the addressing used by underlying driver
*
* @param index Logical index of the LED we want to work on
*
* @return Resolved index to be used on the driver
* @retval < 0 Error (eg: trying to address a LED on the other half of a split board)
*/
int rgb_matrix_led_index(int index);
void rgb_matrix_set_color(int index, uint8_t red, uint8_t green, uint8_t blue);