logo

qmk_firmware

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

djam.c (1498B)


  1. /* Copyright 2022 Leo Deng (@myst729)
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include "quantum.h"
  17. #ifdef RGB_MATRIX_ENABLE
  18. led_config_t g_led_config = {
  19. {
  20. /* Key Matrix to LED Index */
  21. { 17, 16, 15, NO_LED, NO_LED, 7, 6, 5 },
  22. { 21, 17, 16, 15, 7, 6, 5, 1 },
  23. { 19, 18, 13, 11, 9, 4, 3, NO_LED }
  24. },
  25. {
  26. /* LED Index to Physical Position */
  27. // Switch LEDs
  28. {224,14}, {224,24}, {224,33}, {212,57}, {192,57}, {192,38}, {172,38}, {152,38},
  29. {152,57}, {142,57}, {132,57}, {112,57}, {92,57}, {82,57}, {72,57},
  30. {72,38}, {52,38}, {32,38}, {32,57}, {12,57}, {0,33}, {0,24}, {0,14},
  31. // Underglow LEDs
  32. {0,0}, {92,0}, {132,0}, {224,0}, {222,64}, {172,64}, {72,64}, {2,64},
  33. },
  34. {
  35. /* LED Index to Flag */
  36. 2, 4, 2, 4, 4, 4, 4, 4,
  37. 2, 4, 2, 4, 2, 4, 2,
  38. 4, 4, 4, 4, 4, 2, 4, 2,
  39. 2, 2, 2, 2, 2, 2, 2, 2
  40. }
  41. };
  42. #endif