Skip to content

Commit

Permalink
LED Matrix: Split (qmk#12633)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and mechlovin committed Jul 30, 2021
1 parent 81edf09 commit fb2e7fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions quantum/led_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ void led_matrix_set_value(int index, uint8_t value) {
#else
led_matrix_driver.set_value(index, value);
#endif
# ifdef USE_CIE1931_CURVE
led_matrix_driver.set_value(index, pgm_read_byte(&CIE1931_CURVE[value]));
# else
led_matrix_driver.set_value(index, value);
# endif
}

void led_matrix_set_value_all(uint8_t value) {
Expand Down
4 changes: 4 additions & 0 deletions quantum/split_common/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ typedef struct _Serial_m2s_buffer_t {
rgb_config_t rgb_matrix;
bool rgb_suspend_state;
# endif
# if defined(LED_MATRIX_ENABLE) && defined(LED_MATRIX_SPLIT)
led_eeconfig_t led_matrix;
bool led_suspend_state;
# endif
# if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT)
rgb_config_t rgb_matrix;
bool rgb_suspend_state;
Expand Down

0 comments on commit fb2e7fa

Please sign in to comment.