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.

70 lines
2.1 KiB

  1. /* Copyright 2021 18438880
  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 "latin17rgb.h"
  17. #ifdef RGB_MATRIX_ENABLE
  18. const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
  19. /* Refer to IS31 manual for these locations
  20. * driver
  21. * | R location
  22. * | | G location
  23. * | | | B location
  24. * | | | | */
  25. {0, C1_3, C2_3, C3_3},// BL1
  26. {0, C1_4, C2_4, C3_4},// BL2
  27. {0, C1_5, C2_5, C3_5},// BL3
  28. {0, C1_11, C2_11, C3_11},// BL4
  29. {0, C1_12, C2_12, C3_12},// BL5
  30. {0, C1_13, C2_13, C3_13},// BL6
  31. {0, C1_6, C2_6, C3_6},// BL7
  32. {0, C1_7, C2_7, C3_7},//BL8
  33. {0, C1_8, C2_8, C3_8},// BL9
  34. {0, C1_14, C2_14, C3_14},// BL10
  35. {0, C1_15, C2_15, C3_15},// BL11
  36. {0, C1_16,C2_16,C3_16},// BL12
  37. {0, C7_1, C8_1, C9_1},// BL13
  38. {0, C9_2, C8_2, C7_2},// BL14
  39. {0, C9_3, C8_3, C7_3},//BL15
  40. {0, C9_5, C8_5, C7_5},// BL16
  41. {0, C9_6, C8_6, C7_6},// BL17
  42. };
  43. led_config_t g_led_config = {
  44. {
  45. { 0, 1, 2, 3},
  46. { 4, 5, 6, 7},
  47. { 8, 9, 10, NO_LED},
  48. { 11, 12, 13, 14},
  49. { 15, 16, NO_LED, NO_LED},
  50. },
  51. {
  52. { 48, 32},{ 48, 48},{ 64, 48},{ 80, 48},
  53. { 16, 32},{ 16, 48}, { 32, 48},{ 64, 64},
  54. { 80, 16},{ 64, 32},{ 80, 32},
  55. {112, 0},{128, 0},{144, 0},{160, 0},
  56. {128, 16},{144, 16}
  57. },
  58. {
  59. 4, 4, 4, 1,
  60. 1, 1, 4, 1,
  61. 1, 4, 4,
  62. 1, 4, 4, 4,
  63. 4, 4
  64. }
  65. };
  66. #endif