forked from mirror/qmk_firmware
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user