rgb_led struct conversion (aka: Per led (key) type rgb matrix effects - part 2) (#5783)
* Initial conversion of the rgb_led struct * Converting last keyboard & updating effects to take advantage of the new structure * New struct should not be const * Updated docs * Changing define ___ for no led to NO_LED * Missed converting some keymap usages of the old struct layout
This commit is contained in:
parent
c7f8548d9a
commit
af89752bff
51 changed files with 751 additions and 1640 deletions
|
@ -1,20 +1 @@
|
|||
#include "sol.h"
|
||||
|
||||
#if defined(RGB_MATRIX_ENABLE)
|
||||
uint8_t rgb_matrix_map_row_column_to_led_kb(uint8_t row, uint8_t column, uint8_t *led_i) {
|
||||
if (row == 4 && column == 5) {
|
||||
led_i[0] = 33;
|
||||
return 1;
|
||||
} else if (row == 4 && column == 6) {
|
||||
led_i[0] = 34;
|
||||
return 1;
|
||||
} else if (row == 10 && column == 5) {
|
||||
led_i[0] = 68;
|
||||
return 1;
|
||||
} else if (row == 10 && column == 6) {
|
||||
led_i[0] = 69;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue