logo

qmk_firmware

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

canoe_gen2.c (3484B)


  1. /*
  2. Copyright 2020 Evy Dekkers
  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. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #include "quantum.h"
  15. #ifdef RGB_MATRIX_ENABLE
  16. led_config_t g_led_config = { {
  17. // Key Matrix to LED Index
  18. // 15, 44, 46, 48,
  19. // 74, 75, 76
  20. { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16 },
  21. { 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 13, 31 },
  22. { 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 30, 45, 47 },
  23. { 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63 },
  24. { 64, 65, 66, NO_LED, NO_LED, NO_LED, 67, NO_LED, NO_LED, 69, 70, NO_LED, 71, 72, 73 }
  25. }, {
  26. // LED Index to Physical Position
  27. { 7, 8 }, // Esc
  28. { 22, 8 }, // 1
  29. { 37, 8 }, // 2
  30. { 52, 8 }, // 3
  31. { 67, 8 }, // 4
  32. { 82, 8 }, // 5
  33. { 97, 8 }, // 6
  34. { 112, 8 }, // 7
  35. { 127, 8 }, // 8
  36. { 142, 8 }, // 9
  37. { 157, 8 }, // 0
  38. { 172, 8 }, // -
  39. { 187, 8 }, // =
  40. { 202, 8 }, // split bs
  41. { 209, 8 }, // bs
  42. { 217, 8 }, // split bs
  43. { 231, 8 }, // ins
  44. { 11, 24 }, // tab
  45. { 30, 24 }, // q
  46. { 45, 24 }, // w
  47. { 60, 24 }, // e
  48. { 75, 24 }, // r
  49. { 90, 24 }, // t
  50. { 104, 24 }, // y
  51. { 119, 24 }, // u
  52. { 134, 24 }, // i
  53. { 149, 24 }, // o
  54. { 164, 24 }, // p
  55. { 179, 24 }, // [
  56. { 194, 24 }, // ]
  57. { 212, 24 }, // backslash
  58. { 231, 24 }, // del
  59. { 11, 40 }, // caps
  60. { 34, 40 }, // a
  61. { 49, 40 }, // s
  62. { 64, 40 }, // d
  63. { 79, 40 }, // f
  64. { 94, 40 }, // g
  65. { 108, 40 }, // h
  66. { 123, 40 }, // j
  67. { 138, 40 }, // k
  68. { 153, 40 }, // l
  69. { 168, 40 }, // ;
  70. { 183, 40 }, // '
  71. { 198, 40 }, // iso hash
  72. { 200, 40 }, // ansi enter
  73. { 215, 32 }, // iso enter
  74. { 231, 40 }, // pgup
  75. { 9, 56 }, // iso shift
  76. { 17, 56 }, // ansi shift
  77. { 26, 56 }, // iso nubs
  78. { 41, 56 }, // z
  79. { 56, 56 }, // x
  80. { 71, 56 }, // c
  81. { 86, 56 }, // v
  82. { 101, 56 }, // b
  83. { 116, 56 }, // n
  84. { 131, 56 }, // m
  85. { 146, 56 }, // ,
  86. { 161, 56 }, // .
  87. { 175, 56 }, // ?
  88. { 196, 56 }, // shift
  89. { 217, 56 }, // up
  90. { 231, 56 }, // pgdn
  91. { 10, 72 }, // ctrl
  92. { 29, 72 }, // win
  93. { 48, 72 }, // alt
  94. { 103, 72 }, // space
  95. { 112, 72 }, // space
  96. { 161, 72 }, // alt
  97. { 176, 72 }, // fn
  98. { 202, 72 }, // left
  99. { 217, 72 }, // down
  100. { 231, 72 }, // right
  101. { 7, 40 }, // top 1
  102. { 119, 40 }, // top 2
  103. { 231, 40 } // top 3
  104. }, {
  105. // LED Index to Flag
  106. 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1,
  107. 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
  108. 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1,
  109. 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1,
  110. 1, 1, 1, 4, 4, 1, 1, 1, 1, 1,
  111. 2, 2, 2
  112. } };
  113. #endif