diff options
author | XScorpion2 <rcalt2vt@gmail.com> | 2019-04-30 16:55:53 +0200 |
---|---|---|
committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-04-30 16:55:53 +0200 |
commit | bb208f3e3b69fb154f4f78d7538ffa28482f232f (patch) | |
tree | e548229efcab7899d2702983d7d49ed11ffa182a /keyboards/sol | |
parent | 483ad4e3e041084977bc128622aa49c637524b77 (diff) | |
download | qmk_firmware-bb208f3e3b69fb154f4f78d7538ffa28482f232f.tar.gz qmk_firmware-bb208f3e3b69fb154f4f78d7538ffa28482f232f.tar.xz |
Implement kb function for rgb matrix to led lookup (#5738)
Diffstat (limited to 'keyboards/sol')
-rw-r--r-- | keyboards/sol/sol.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/keyboards/sol/sol.c b/keyboards/sol/sol.c index 5945cc60a..a65d4c15f 100644 --- a/keyboards/sol/sol.c +++ b/keyboards/sol/sol.c @@ -1 +1,20 @@ #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 |