native.c 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /* Copyright 2021 Moritz Plattner
  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. /* This board has !SDB of the is31 wired to D2. Set high to enable */
  18. void keyboard_post_init_user(void) {
  19. setPinOutput(B9);
  20. writePinHigh(B9);
  21. }
  22. #ifdef RGB_MATRIX_ENABLE
  23. const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
  24. /* Refer to IS31 manual for these locations
  25. * driver
  26. * | R location
  27. * | | G location
  28. * | | | B location
  29. * | | | | */
  30. {0, L_1, K_1, J_1}, // Row 1
  31. {0, L_2, K_2, J_2},
  32. {0, L_3, K_3, J_3},
  33. {0, L_4, K_4, J_4},
  34. {0, L_5, K_5, J_5},
  35. {0, L_6, K_6, J_6},
  36. {0, L_7, K_7, J_7},
  37. {0, L_8, K_8, J_8},
  38. {0, L_9, K_9, J_9},
  39. {0, L_10, K_10, J_10},
  40. {0, L_11, K_11, J_11},
  41. {0, L_12, K_12, J_12},
  42. {0, L_13, K_13, J_13},
  43. {0, L_14, K_14, J_14},
  44. {0, L_15, K_15, J_15},
  45. {0, L_16, K_16, J_16},
  46. {0, I_1, H_1, G_1}, // Row 2
  47. {0, I_2, H_2, G_2},
  48. {0, I_3, H_3, G_3},
  49. {0, I_4, H_4, G_4},
  50. {0, I_5, H_5, G_5},
  51. {0, I_6, H_6, G_6},
  52. {0, I_7, H_7, G_7},
  53. {0, I_8, H_8, G_8},
  54. {0, I_9, H_9, G_9},
  55. {0, I_10, H_10, G_10},
  56. {0, I_11, H_11, G_11},
  57. {0, I_12, H_12, G_12},
  58. {0, I_13, H_13, G_13},
  59. {0, I_15, H_15, G_15},
  60. {0, I_16, H_16, G_16},
  61. {0, F_1, E_1, D_1}, // Row 3
  62. {0, F_3, E_3, D_3},
  63. {0, F_4, E_4, D_4},
  64. {0, F_5, E_5, D_5},
  65. {0, F_6, E_6, D_6},
  66. {0, F_7, E_7, D_7},
  67. {0, F_8, E_8, D_8},
  68. {0, F_9, E_9, D_9},
  69. {0, F_10, E_10, D_10},
  70. {0, F_11, E_11, D_11},
  71. {0, F_12, E_12, D_12},
  72. {0, F_13, E_13, D_13},
  73. {0, F_14, E_14, D_14},
  74. {0, F_15, E_15, D_15},
  75. {0, F_16, E_16, D_16},
  76. {1, L_1, K_1, J_1}, // Row 4
  77. {1, L_3, K_3, J_3},
  78. {1, L_4, K_4, J_4},
  79. {1, L_5, K_5, J_5},
  80. {1, L_6, K_6, J_6},
  81. {1, L_7, K_7, J_7},
  82. {1, L_8, K_8, J_8},
  83. {1, L_9, K_9, J_9},
  84. {1, L_10, K_10, J_10},
  85. {1, L_11, K_11, J_11},
  86. {1, L_12, K_12, J_12},
  87. {1, L_13, K_13, J_13},
  88. {1, L_14, K_14, J_14},
  89. {1, L_16, K_16, J_16},
  90. {1, I_1, H_1, G_1}, // Row 5
  91. {1, I_2, H_2, G_2},
  92. {1, I_3, H_3, G_3},
  93. {1, I_4, H_4, G_4},
  94. {1, I_5, H_5, G_5},
  95. {1, I_6, H_6, G_6},
  96. {1, I_7, H_7, G_7},
  97. {1, I_8, H_8, G_8},
  98. {1, I_9, H_9, G_9},
  99. {1, I_10, H_10, G_10},
  100. {1, I_11, H_11, G_11},
  101. {1, I_12, H_12, G_12},
  102. {1, I_14, H_14, G_14},
  103. {1, I_15, H_15, G_15},
  104. {1, I_16, H_16, G_16},
  105. {1, F_1, E_1, D_1}, // Row 6
  106. {1, F_2, E_2, D_2},
  107. {1, F_3, E_3, D_3},
  108. {1, F_7, E_7, D_7},
  109. {1, F_11, E_11, D_11},
  110. {1, F_12, E_12, D_12},
  111. {1, F_13, E_13, D_13},
  112. {1, F_14, E_14, D_14},
  113. {1, F_15, E_15, D_15},
  114. {1, F_16, E_16, D_16}
  115. };
  116. #endif