logo

qmk_firmware

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

launch_pad.c (1642B)


  1. /* Copyright 2020 Ungodly Design <hello@ungodly.design>
  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. // Key Matrix to LED Index
  20. { 14, 15, 16, 17 },
  21. { 13, 12, 11, 10 },
  22. { 6, 7, 8, 9 },
  23. { 5, 4, 3, 2 },
  24. {NO_LED, 0, 1, NO_LED }
  25. }, { // LED Index to Physical Position
  26. { 37, 60 }, { 148, 60 }, // row 5
  27. { 222, 54 }, { 148, 45 }, { 74, 45 }, { 0, 45 }, // row 4
  28. { 0, 30 }, { 74, 30 }, { 148, 30 }, { 222, 30 }, // row 3
  29. { 222, 15 }, { 148, 15 }, { 74, 15 }, { 0, 15 }, // row 2
  30. { 0, 0 }, { 74, 0 }, { 148, 0 }, { 222, 0 }, // row 1
  31. { 185, 7 }, { 37, 7 }, // top underglow
  32. { 37, 52 }, { 185, 52 }, // bottom underglow
  33. }, {
  34. // LED Index to Flag
  35. 4, 4, // row 5
  36. 4, 4, 4, 4, // row 4
  37. 4, 4, 4, 4, // row 3
  38. 4, 4, 4, 4, // row 2
  39. 4, 4, 4, 4, // row 1
  40. 2, 2,
  41. 2, 2
  42. } };
  43. #endif