logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

z40.c (2301B)


  1. /*
  2. / Copyright 2022 quarkeys
  3. / This program is free software: you can redistribute it and/or modify
  4. / it under the terms of the GNU General Public License as published by
  5. / the Free Software Foundation, either version 2 of the License, or
  6. / (at your option) any later version.
  7. / This program is distributed in the hope that it will be useful,
  8. / but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. / MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. / GNU General Public License for more details.
  11. / You should have received a copy of the GNU General Public License
  12. / along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #include "quantum.h"
  15. #ifdef RGB_MATRIX_ENABLE
  16. led_config_t g_led_config = { {
  17. // Key Matrix to LED Index
  18. /*
  19. { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B }, \
  20. { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B }, \
  21. { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B }, \
  22. { k30, k31, k32, k33, k34, k35, XXX, k36, k37, k38, k39, k3A }\
  23. */
  24. { 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35 },
  25. { 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23 },
  26. { 22, 21, 20, 29, 18, 17, 16, 15, 14, 13, 12, 11 },
  27. { 10, 9, 8, 7, 6, 5, NO_LED, 4, 3, 2, 1, 0 }
  28. },
  29. { // Index to Physical Position
  30. {225, 64}, {200, 64}, {180, 64}, {160, 64}, {140, 64}, {110, 64}, { 80, 64}, { 60, 64}, { 40, 64}, { 20, 64}, { 0, 64},
  31. {225, 42}, {200, 42}, {180, 42}, {160, 42}, {140, 42}, {120, 42}, {100, 42}, { 80, 42}, { 60, 42}, { 40, 42}, { 20, 42}, { 0, 42},
  32. {225, 21}, {200, 21}, {180, 21}, {160, 21}, {140, 21}, {120, 21}, {100, 21}, { 80, 21}, { 60, 21}, { 40, 21}, { 20, 21}, { 0, 21},
  33. {225, 0}, {200, 0}, {180, 0}, {160, 0}, {140, 0}, {120, 0}, {100, 0}, { 80, 0}, { 60, 0}, { 40, 0}, { 20, 0}, { 0, 0}
  34. },
  35. {
  36. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  37. 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1,
  38. 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1,
  39. 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1
  40. }
  41. };
  42. #endif