logo

qmk_firmware

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

id67.c (4416B)


  1. // Copyright 2021 Tybera (@tybera)
  2. // Copyright 2021 Werther (@thewerther)
  3. // Copyright 2022 Vino Rodrigues (@vinorodrigues)
  4. // SPDX-License-Identifier: GPL-2.0-or-later
  5. #include "quantum.h"
  6. #define __ NO_LED
  7. #if defined(RGB_MATRIX_ENABLE)
  8. /* NB!!: Indices are reversed on the physical board, top left is bottom right.
  9. * These "LED Index to *" arrays are in that reversed order!
  10. * i.e., Space row on top, listed right to left */
  11. led_config_t g_led_config = { {
  12. /* Under- / Per-Key
  13. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
  14. * │66 │65 │64 │63 │62 │61 │60 │59 │58 │57 │56 │55 │54 │ 53 │52 │
  15. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
  16. * │ 51 │50 │49 │48 │47 │46 │45 │44 │43 │42 │41 │40 │39 │ 38 │37 │
  17. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
  18. * │ 36 │35 │34 │33 │32 │31 │30 │29 │28 │27 │26 │25 │ 24 │23 │
  19. * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
  20. * │ 22 │21 │20 │19 │18 │17 │16 │15 │14 │13 │12 │ 11 │10 │ 9 │
  21. * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
  22. * │ 8 │ 7 │ 6 │ 5 │ 4 │ 3 │ │ 2 │ 1 │ 0 │
  23. * └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
  24. *
  25. * Bottom Side (as seen from top orientation)
  26. * 67 68 69 70 71
  27. * 76 75 74 73 72
  28. */
  29. // Key Matrix to LED Index
  30. {66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52},
  31. {51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37},
  32. {36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, __, 24, 23},
  33. {22, __, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9},
  34. { 8, 7, __, 6, __, __, 5, __, __, __, 4, 3, 2, 1, 0},
  35. }, {
  36. // LED Index to Physical Position
  37. // based on: https://gist.github.com/vinorodrigues/07fd735683856b2a06c7c52b9b3878cb
  38. // **NB: In reverse order**
  39. {224,64 }, {209,64 }, {194,64 }, {170,64 }, {151,64 }, { 95,64 }, { 39,64 }, { 21,64 }, { 2,64 },
  40. {224,48 }, {209,48 }, {189,48 }, {168,48 }, {153,48 }, {138,48 }, {123,48 }, {108,48 }, { 93,48 }, { 78,48 }, { 63,48 }, { 49,48 }, { 34,48 }, { 9,48 },
  41. {224,32 }, {200,32 }, {175,32 }, {161,32 }, {146,32 }, {131,32 }, {116,32 }, {101,32 }, { 86,32 }, { 71,32 }, { 56,32 }, { 41,32 }, { 26,32 }, { 6,32 },
  42. {224,16 }, {205,16 }, {187,16 }, {172,16 }, {157,16 }, {142,16 }, {127,16 }, {112,16 }, { 97,16 }, { 82,16 }, { 67,16 }, { 52,16 }, { 37,16 }, { 22,16 }, { 4,16 },
  43. {224,0 }, {202,0 }, {179,0 }, {164,0 }, {149,0 }, {134,0 }, {119,0 }, {105,0 }, { 90,0 }, { 75,0 }, { 60,0 }, { 45,0 }, { 30,0 }, { 15,0 }, { 0,0 }
  44. // underglow LEDs
  45. #ifndef ID67_DISABLE_UNDERGLOW
  46. , {0, 0}, {56, 0}, {112, 0}, {168, 0}, {224, 0},
  47. {224, 64}, {168, 64}, {112, 64}, {56, 64}, {0, 64}
  48. #endif
  49. }, {
  50. // LED Index to Flag
  51. // **NB: In reverse order**
  52. 1, 1, 1, 1, 1, 4, 1, 1, 1, // fifth/bottom row
  53. 1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // fourth row
  54. 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 9, // third row
  55. 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // second row
  56. 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1 // first/top row
  57. // underglow LEDs
  58. #ifndef ID67_DISABLE_UNDERGLOW
  59. , 2, 2, 2, 2, 2,
  60. 2, 2, 2, 2, 2
  61. #endif
  62. } };
  63. #endif // RGB_MATRIX_ENABLE