rev1.c 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. Copyright 2019 @foostan
  3. Copyright 2020 Drashna Jaelre <@drashna>
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 2 of the License, or
  7. (at your option) any later version.
  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. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #include "rev1.h"
  16. #ifdef RGB_MATRIX_ENABLE
  17. // Logical Layout
  18. // Columns
  19. // Left
  20. // 0 1 2 3 4 5
  21. // ROWS
  22. // 25 24 19 18 11 10 0
  23. // 03 02 01
  24. // 26 23 20 17 12 09 1
  25. // 04 05 06
  26. // 27 22 21 16 13 08 2
  27. //
  28. // 15 14 07 3
  29. //
  30. // Right
  31. // 0 1 2 3 4 5
  32. // ROWS
  33. // 25 24 19 18 11 10 4
  34. // 03 02 01
  35. // 26 23 20 17 12 09 5
  36. // 04 05 06
  37. // 27 22 21 16 13 08 6
  38. //
  39. // 15 14 07 7
  40. //
  41. // Physical Layout
  42. // Columns
  43. // 0 1 2 3 4 5 6 7 8 9 10 11 12 13
  44. // ROWS
  45. // 25 24 19 18 11 10 10 11 18 19 24 25 0
  46. // 03 02 01 01 02 03
  47. // 26 23 20 17 12 09 09 12 17 20 23 26 1
  48. // 04 04
  49. // 27 22 21 16 13 08 08 13 16 21 22 27 2
  50. // 05 06 06 05
  51. // 15 14 07 07 14 15 3
  52. led_config_t g_led_config = { {
  53. { 24, 23, 18, 17, 10, 9 },
  54. { 25, 22, 19, 16, 11, 8 },
  55. { 26, 21, 20, 15, 12, 7 },
  56. { NO_LED, NO_LED, NO_LED, 14, 13, 6 },
  57. { 51, 50, 45, 44, 37, 36 },
  58. { 52, 49, 46, 43, 38, 35 },
  59. { 53, 48, 47, 42, 39, 34 },
  60. { NO_LED, NO_LED, NO_LED, 41, 40, 33 }
  61. }, {
  62. { 85, 16 }, { 50, 13 }, { 16, 20 }, { 16, 38 }, { 50, 48 }, { 85, 52 }, { 95, 63 },
  63. { 85, 39 }, { 85, 21 }, { 85, 4 }, { 68, 2 }, { 68, 19 }, { 68, 37 }, { 80, 58 },
  64. { 60, 55 }, { 50, 35 }, { 50, 13 }, { 50, 0 }, { 33, 3 }, { 33, 20 }, { 33, 37 },
  65. { 16, 42 }, { 16, 24 }, { 16, 7 }, { 0, 7 }, { 0, 24 }, { 0, 41 }, { 139, 16 },
  66. { 174, 13 }, { 208, 20 }, { 208, 38 }, { 174, 48 }, { 139, 52 }, { 129, 63 }, { 139, 39 },
  67. { 139, 21 }, { 139, 4 }, { 156, 2 }, { 156, 19 }, { 156, 37 }, { 144, 58 }, { 164, 55 },
  68. { 174, 35 }, { 174, 13 }, { 174, 0 }, { 191, 3 }, { 191, 20 }, { 191, 37 }, { 208, 42 },
  69. { 208, 24 }, { 208, 7 }, { 224, 7 }, { 224, 24 }, { 224, 41 }
  70. }, {
  71. 2, 2, 2, 2, 2, 2, 1,
  72. 4, 4, 4, 4, 4, 4, 1,
  73. 1, 4, 4, 4, 4, 4, 4,
  74. 4, 4, 4, 1, 1, 1, 2,
  75. 2, 2, 2, 2, 2, 1, 4,
  76. 4, 4, 4, 4, 4, 1, 1,
  77. 4, 4, 4, 4, 4, 4, 4,
  78. 4, 4, 1, 1, 1
  79. } };
  80. void suspend_power_down_kb(void) {
  81. rgb_matrix_set_suspend_state(true);
  82. suspend_power_down_user();
  83. }
  84. void suspend_wakeup_init_kb(void) {
  85. rgb_matrix_set_suspend_state(false);
  86. suspend_wakeup_init_user();
  87. }
  88. #endif