logo

qmk_firmware

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

id42.c (2545B)


  1. // Copyright 2022 Vino Rodrigues (@vinorodrigues)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "quantum.h"
  4. #define __ NO_LED
  5. #ifdef RGB_MATRIX_ENABLE
  6. /*
  7. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
  8. * │41 │40 │39 │38 │37 │36 │35 │34 │33 │32 │31 │30 │
  9. * ├───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
  10. * │ 29 │28 │27 │26 │25 │24 │23 │22 │21 │20 │ 19 │
  11. * ├────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴──┬┴──┬───┤
  12. * │ 18 │17 │16 │15 │14 │13 │12 │11 │ 10 │ 9 │ 8 │
  13. * ├────┬┴──┬┴───┼───┴───┴─┬─┴───┴───┼─┬───┼───┼───┤
  14. * │ 7 │ 6 │ 5 │ 4 │ 3 │ │ 2 │ 1 │ 0 │
  15. * └────┴───┴────┴─────────┴─────────┘ └───┴───┴───┘
  16. */
  17. led_config_t g_led_config = { {
  18. // Key Matrix to LED Index
  19. // WS2812 LED strings are addressed from 0 (1st) to RGB_MATRIX_LED_COUNT-1 (last)
  20. { 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30 },
  21. { 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, __, 19 },
  22. { 18, 17, 16, 15, 14, 13, 12, 11, 10, __, 9, 8 },
  23. { 7, 6, 5, 4, __, __, 3, __, __, 2, 1, 0 }
  24. }, {
  25. // LED Index to Physical Position
  26. // **NB**: Reversed order
  27. // Generated from: https://xelus.netlify.app/guides/KLE_to_RGB_parser
  28. {224,64 }, {204,64 }, {183,64 }, {135,64 }, { 84,64 }, { 48,64 }, { 25,64 }, { 3,64 },
  29. {224,43 }, {204,43 }, {181,43 }, {158,43 }, {137,43 }, {117,43 }, { 97,43 }, { 76,43 }, { 56,43 }, { 36,43 }, { 8,43 },
  30. {216,21 }, {188,21 }, {168,21 }, {148,21 }, {127,21 }, {107,21 }, { 87,21 }, { 66,21 }, { 46,21 }, { 25,21 }, { 3,21 },
  31. {224,0 }, {204,0 }, {183,0 }, {163,0 }, {143,0 }, {122,0 }, {102,0 }, { 81,0 }, { 61,0 }, { 41,0 }, { 20,0 }, { 0,0 }
  32. }, {
  33. // LED Index to Flag
  34. // **NB**: Reversed order
  35. 4, 4, 4, 4, 4, 4, 4, 4,
  36. 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 4,
  37. 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4,
  38. 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4
  39. } };
  40. #endif // RGB_MATRIX_ENABLE