logo

qmk_firmware

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

gen1.c (3248B)


  1. /* Copyright 2017 Clueboard <info@clueboard.co>
  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 LED_MATRIX_ENABLE
  18. const is31fl3731_led_t PROGMEM g_is31fl3731_leds[IS31FL3731_LED_COUNT] = {
  19. /* Refer to IS31 manual for these locations
  20. * driver
  21. * | LED address
  22. * | | */
  23. { 0, C1_1 }, // k00 QK_GESC
  24. { 0, C1_2 }, // k01 KC_1
  25. { 0, C1_3 }, // k02 KC_2
  26. { 0, C1_4 }, // k03 KC_3
  27. { 0, C1_5 }, // k04 KC_4
  28. { 0, C1_6 }, // k05 KC_5
  29. { 0, C1_7 }, // k06 KC_6
  30. { 0, C1_8 }, // k07 KC_7
  31. { 0, C1_9 }, // k50 KC_8
  32. { 0, C1_10 }, // k51 KC_9
  33. { 0, C1_11 }, // k52 KC_0
  34. { 0, C1_12 }, // k53 KC_MINS
  35. { 0, C1_13 }, // k54 KC_EQL
  36. { 0, C1_14 }, // k55 KC_BSPC
  37. { 0, C1_15 }, // k57 KC_PGUP
  38. { 0, C2_1 }, // k10 KC_TAB
  39. { 0, C2_2 }, // k11 KC_Q
  40. { 0, C2_3 }, // k12 KC_W
  41. { 0, C2_4 }, // k13 KC_E
  42. { 0, C2_5 }, // k14 KC_R
  43. { 0, C2_6 }, // k15 KC_T
  44. { 0, C2_7 }, // k16 KC_Y
  45. { 0, C2_8 }, // k17 KC_U
  46. { 0, C2_9 }, // k60 KC_I
  47. { 0, C2_10 }, // k61 KC_O
  48. { 0, C2_11 }, // k62 KC_P
  49. { 0, C2_12 }, // k63 KC_LBRC
  50. { 0, C2_13 }, // k64 KC_RBRC
  51. { 0, C2_14 }, // k65 KC_BSLS
  52. { 0, C2_15 }, // k67 KC_PGDN
  53. { 0, C3_1 }, // k20 KC_CAPS
  54. { 0, C3_2 }, // k21 KC_A
  55. { 0, C3_3 }, // k22 KC_S
  56. { 0, C3_4 }, // k23 KC_D
  57. { 0, C3_5 }, // k24 KC_F
  58. { 0, C3_6 }, // k25 KC_G
  59. { 0, C3_7 }, // k26 KC_H
  60. { 0, C3_8 }, // k27 KC_J
  61. { 0, C3_9 }, // k70 KC_K
  62. { 0, C3_10 }, // k71 KC_L
  63. { 0, C3_11 }, // k72 KC_SCLN
  64. { 0, C3_12 }, // k73 KC_QUOT
  65. { 0, C3_14 }, // k75 KC_ENT
  66. { 0, C4_1 }, // k30 KC_LSFT
  67. { 0, C4_3 }, // k32 KC_Z
  68. { 0, C4_4 }, // k33 KC_X
  69. { 0, C4_5 }, // k34 KC_C
  70. { 0, C4_6 }, // k35 KC_V
  71. { 0, C4_7 }, // k36 KC_B
  72. { 0, C4_8 }, // k37 KC_N
  73. { 0, C4_9 }, // k80 KC_M
  74. { 0, C4_10 }, // k81 KC_COMM
  75. { 0, C4_11 }, // k82 KC_DOT
  76. { 0, C4_12 }, // k83 KC_SLSH
  77. { 0, C4_13 }, // k85 KC_RSFT
  78. { 0, C4_14 }, // k86 KC_UP
  79. { 0, C5_1 }, // k40 KC_LCTL
  80. { 0, C5_2 }, // k41 KC_LGUI
  81. { 0, C5_3 }, // k42 KC_LALT
  82. { 0, C5_4 }, // Unassociated between LALT and SPACE_2.75
  83. { 0, C5_5 }, // k45 KC_SPC SPACE_2.75
  84. { 0, C5_6 }, // k45 KC_SPC SPACE_6.75
  85. { 0, C5_7 }, // k46 KC_SPC SPACE_2.25
  86. { 0, C5_8 }, // Unassociated between SPACE_2.25 and SPACE_1.25
  87. { 0, C5_9 }, // k90 KC_RGUI
  88. { 0, C5_10 }, // k92 KC_RALT
  89. { 0, C5_11 }, // k93 MO(_FL)
  90. { 0, C5_12 }, // k94 KC_RCTL
  91. { 0, C5_13 }, // k95 KC_LEFT
  92. { 0, C5_14 }, // k96 KC_DOWN
  93. { 0, C5_15 } // k97 KC_RGHT
  94. };
  95. #endif