You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
2.7 KiB

  1. /* Copyright 2021 Mss Studio
  2. * Copyright 2022 HorrorTroll <https://github.com/HorrorTroll>
  3. *
  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. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #include "m64_rgb.h"
  18. #ifdef RGB_MATRIX_ENABLE
  19. led_config_t g_led_config = { {
  20. { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 },
  21. { 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 },
  22. { 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, NO_LED, 40 },
  23. { 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54 },
  24. { 55, 56, 57, NO_LED, NO_LED, 58, NO_LED, NO_LED, NO_LED, 59, 60, 61, 62, 63 }
  25. }, {
  26. // Key matrix (0 -> 63)
  27. {0 , 0}, {16 , 0}, {32 , 0}, {48 , 0}, {64 , 0}, {80 , 0}, {96 , 0}, {112, 0}, {128, 0}, {144, 0}, {160, 0}, {176, 0}, {192, 0}, {216, 0},
  28. {4 , 16}, {24 , 16}, {40 , 16}, {56 , 16}, {72 , 16}, {88 , 16}, {104, 16}, {120, 16}, {136, 16}, {152, 16}, {168, 16}, {184, 16}, {200, 16}, {220, 16},
  29. {6 , 32}, {28 , 32}, {44 , 32}, {60 , 32}, {76 , 32}, {92 , 32}, {108, 32}, {124, 32}, {140, 32}, {156, 32}, {172, 32}, {188, 32}, {214, 32},
  30. {8 , 48}, {32 , 48}, {48 , 48}, {64 , 48}, {80 , 48}, {96 , 48}, {112, 48}, {128, 48}, {144, 48}, {160, 48}, {176, 48}, {192, 48}, {208, 48}, {224, 48},
  31. {2 , 64}, {22 , 64}, {42 , 64}, {102, 64}, {160, 64}, {176, 64}, {192, 64}, {208, 64}, {224, 64},
  32. // Underglow (64 -> 75)
  33. {216, 56}, {181, 57}, {138, 59}, {105, 58}, {52 , 60}, {10 , 60},
  34. {20 , 12}, {54 , 12}, {102, 10}, {145, 13}, {182, 9}, {211, 10},
  35. }, {
  36. // Key matrix (0 -> 63)
  37. 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
  38. 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  39. 8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
  40. 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 4, 4,
  41. 1, 1, 1, 4, 1, 1, 4, 4, 4,
  42. // Underglow (64 -> 75)
  43. 2, 2, 2, 2, 2, 2,
  44. 2, 2, 2, 2, 2, 2
  45. } };
  46. #endif