2
0

muon_light.c 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /* Copyright 2018 Jack Humbert
  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 "muon_light.h"
  17. void matrix_init_kb(void) {
  18. matrix_init_user();
  19. }
  20. bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
  21. return process_record_user(keycode, record);
  22. }
  23. void matrix_scan_kb(void) {
  24. matrix_scan_user();
  25. }
  26. // void suspend_power_down_kb(void) {
  27. // rgb_matrix_set_suspend_state(true);
  28. // }
  29. // void suspend_wakeup_init_kb(void) {
  30. // rgb_matrix_set_suspend_state(false);
  31. // }
  32. const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_ortho_4x6(
  33. 18, 19, 20, 21, 22, 23,
  34. 12, 13, 14, 15, 16, 17,
  35. 6, 7, 8, 9, 10, 11,
  36. 0, 1, 2, 3, 4, 5
  37. );
  38. // const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
  39. // /* Refer to IS31 manual for these locations
  40. // * driver
  41. // * | R location
  42. // * | | G location
  43. // * | | | B location
  44. // * | | | | */
  45. // {0, C1_3, C2_3, C3_3},
  46. // {0, C1_4, C2_4, C3_4},
  47. // {0, C1_5, C2_5, C3_5},
  48. // {0, C1_11, C2_11, C3_11},
  49. // {0, C1_12, C2_12, C3_12},
  50. // {0, C1_13, C2_13, C3_13},
  51. // {0, C1_6, C2_6, C3_6},
  52. // {0, C1_7, C2_7, C3_7},
  53. // {0, C1_8, C2_8, C3_8},
  54. // {0, C1_14, C2_14, C3_14},
  55. // {0, C1_15, C2_15, C3_15},
  56. // {0, C1_16, C2_16, C3_16},
  57. // {0, C9_1, C8_1, C7_1},
  58. // {0, C9_2, C8_2, C7_2},
  59. // {0, C9_3, C8_3, C7_3},
  60. // {0, C9_9, C8_9, C7_9},
  61. // {0, C9_10, C8_10, C7_10},
  62. // {0, C9_11, C8_11, C7_11},
  63. // {0, C9_4, C8_4, C7_4},
  64. // {0, C9_5, C8_5, C7_5},
  65. // {0, C9_6, C8_6, C7_6},
  66. // {0, C9_12, C8_12, C7_12},
  67. // {0, C9_13, C8_13, C7_13},
  68. // {0, C9_14, C8_14, C7_14}
  69. // };
  70. // const rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = {
  71. // {row | col << 4}
  72. // | {x=0..224, y=0..64}
  73. // | | modifier
  74. // | | |
  75. // {{0|(0<<4)}, {20.36*0, 21.33*0}, 1},
  76. // {{0|(1<<4)}, {20.36*1, 21.33*0}, 0},
  77. // {{0|(2<<4)}, {20.36*2, 21.33*0}, 0},
  78. // {{0|(3<<4)}, {20.36*3, 21.33*0}, 0},
  79. // {{0|(4<<4)}, {20.36*4, 21.33*0}, 0},
  80. // {{0|(5<<4)}, {20.36*5, 21.33*0}, 0},
  81. // {{1|(0<<4)}, {20.36*0, 21.33*1}, 1},
  82. // {{1|(1<<4)}, {20.36*1, 21.33*1}, 0},
  83. // {{1|(2<<4)}, {20.36*2, 21.33*1}, 0},
  84. // {{1|(3<<4)}, {20.36*3, 21.33*1}, 0},
  85. // {{1|(4<<4)}, {20.36*4, 21.33*1}, 0},
  86. // {{1|(5<<4)}, {20.36*5, 21.33*1}, 0},
  87. // {{2|(0<<4)}, {20.36*0, 21.33*2}, 1},
  88. // {{2|(1<<4)}, {20.36*1, 21.33*2}, 0},
  89. // {{2|(2<<4)}, {20.36*2, 21.33*2}, 0},
  90. // {{2|(3<<4)}, {20.36*3, 21.33*2}, 0},
  91. // {{2|(4<<4)}, {20.36*4, 21.33*2}, 0},
  92. // {{2|(5<<4)}, {20.36*5, 21.33*2}, 0},
  93. // {{3|(0<<4)}, {20.36*0, 21.33*3}, 1},
  94. // {{3|(1<<4)}, {20.36*1, 21.33*3}, 1},
  95. // {{3|(2<<4)}, {20.36*2, 21.33*3}, 1},
  96. // {{3|(3<<4)}, {20.36*3, 21.33*3}, 1},
  97. // {{3|(4<<4)}, {20.36*4, 21.33*3}, 1},
  98. // {{3|(5<<4)}, {20.36*5, 21.33*3}, 0}
  99. // };