You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.0 KiB

  1. /**
  2. * Copyright 2021 Quentin LEBASTARD <qlebastard@gmail.com>
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #include "tbkmini.h"
  18. // clang-format off
  19. #ifdef RGB_MATRIX_ENABLE
  20. led_config_t g_led_config = { {
  21. // left
  22. { 0, 5, 6, 11, 12, 15 },
  23. { 1, 4, 7, 10, 13, 16 },
  24. { 2, 3, 8, 9, 14, 17 },
  25. { NO_LED, 18, NO_LED, 19, 20, NO_LED },
  26. // right
  27. { 21, 26, 27, 32, 33, 36 },
  28. { 22, 25, 28, 31, 34, 37 },
  29. { 23, 24, 29, 30, 35, 38 },
  30. { NO_LED, 39, NO_LED, 40, 41, NO_LED }
  31. }, {
  32. // left
  33. { 0, 0 }, { 0, 21 }, { 0, 42 }, // col 1
  34. { 20, 42 }, { 20, 21 }, { 20, 0 }, // col 2
  35. { 41, 0 }, { 41, 21 }, { 41, 42 },
  36. { 61, 42 }, { 61, 21 }, { 61, 0 },
  37. { 81, 0 }, { 81, 21 }, { 81, 42 },
  38. { 102, 0 }, { 102, 21 }, { 102, 42 },
  39. { 61, 64 }, { 81, 64 }, { 102, 64 }, // left thumb cluster
  40. // right
  41. { 224, 0 }, { 224, 21 }, { 224, 42 }, // col 12
  42. { 204, 42 }, { 204, 21 }, { 204, 0 }, // col 11
  43. { 183, 0 }, { 183, 21 }, { 183, 42 },
  44. { 163, 42 }, { 163, 21 }, { 163, 0 },
  45. { 142, 0 }, { 142, 21 }, { 142, 42 },
  46. { 122, 0 }, { 122, 21 }, { 122, 42 },
  47. { 163, 64 }, { 142, 64 }, { 122, 64 } // right thumb cluster
  48. }, {
  49. // left
  50. 2, 2, 2, 4, 4, 4, 4, 4, 4,
  51. 4, 4, 4, 4, 4, 4, 4, 4, 4,
  52. 2, 2, 2,
  53. // right
  54. 2, 2, 2, 4, 4, 4, 4, 4, 4,
  55. 4, 4, 4, 4, 4, 4, 4, 4, 4,
  56. 2, 2, 2
  57. } };
  58. #endif
  59. // clang-format on