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.

42 lines
1.9 KiB

  1. /*
  2. Copyright 2021 Salicylic_Acid
  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 "naked48.h"
  15. #ifdef RGB_MATRIX_ENABLE
  16. led_config_t g_led_config = { {
  17. // Key Matrix to LED Index
  18. { 0,47,42,41,36,35,30,29,24,23,18,17 },
  19. { 1,46,43,40,37,34,31,28,25,22,19,16 },
  20. { 2,45,44,39,38,33,32,27,26,21,20,15 },
  21. { 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14 }
  22. }, {
  23. // LED Index to Physical Position
  24. { 0, 0 }, { 0, 21 }, { 0, 43 }, { 17, 64 }, { 34, 64 },{ 52, 64 }, { 69, 64 }, { 86, 64 }, { 103, 64 }, { 121, 64 },
  25. { 138, 64 }, { 155, 64 }, { 172, 64 }, { 190, 64 }, { 207, 64 },{ 224, 43 }, { 224, 21 }, { 224, 0 }, { 207, 0 }, { 207, 21 },
  26. { 207, 43 }, { 190, 43 }, { 190, 21 }, { 190, 0 }, { 172, 0 },{ 172, 21 }, { 172, 43 }, { 155, 43 }, { 155, 21 }, { 155, 0 },
  27. { 138, 0 }, { 138, 21 }, { 138, 43 }, { 86, 43 }, { 86, 21 },{ 86, 0 }, { 69, 0 }, { 69, 21 }, { 69, 43 }, { 52, 43 },
  28. { 52, 21 }, { 52, 0 }, { 34, 0 }, { 34, 21 }, { 34, 43 },{ 17, 43 }, { 17, 21 }, { 17, 0 }
  29. }, {
  30. // LED Index to Flag
  31. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  32. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  33. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  34. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  35. 4, 4, 4, 4, 4, 4, 4, 4
  36. } };
  37. #endif