logo

qmk_firmware

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

solderable.h (1778B)


  1. /* Copyright 2021 datafx
  2. *
  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. *
  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. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #define u8 uint8_t
  17. #define u16 uint16_t
  18. #pragma once
  19. #include "quantum.h"
  20. #define KEYLED_ROWS 6
  21. #define KEYLED_COLS 16
  22. #define XaxisMax 18
  23. #define YaxisMax 6
  24. #define RhythmLedColumMax 18
  25. typedef struct{
  26. u8 onf;
  27. u8 hightLevel;
  28. u8 ColumHeight[RhythmLedColumMax];
  29. }
  30. RhythmLed_;
  31. typedef struct{
  32. u8 r,g,b;
  33. }
  34. rgb_;
  35. #define colorAGSize 10
  36. #define colorBGSize RGBLIGHT_LED_COUNT-10
  37. typedef struct{
  38. rgb_ colorAG[colorAGSize];
  39. rgb_ colorBG[RGBLIGHT_LED_COUNT-10];
  40. }
  41. backLedRgbG_;
  42. #define Lseg0 E5
  43. #define Lseg1 B4
  44. #define Lseg2 B5
  45. #define Lseg3 F0
  46. #define Lseg4 C6
  47. #define Lseg5 D5
  48. #define Lcom0 C4
  49. #define Lcom1 C2
  50. #define Lcom2 C0
  51. #define Lcom3 E0
  52. #define Lcom4 D4
  53. #define Lcom5 E4
  54. #define Lcom6 B6
  55. #define Lcom7 B2
  56. #define Lcom8 F4
  57. #define Lcom9 A0
  58. #define Lcom10 F2
  59. #define Lcom11 A4
  60. #define Lcom12 F1
  61. #define Lcom13 A7
  62. #define Lcom14 D3
  63. #define Lcom15 A3
  64. extern void keyLedDriver(void);
  65. extern void KeyLedCom(void);
  66. u8 getKeyLedIndexForXY(u8 x,u8 y);
  67. extern void ledCapsSet(bool onf);
  68. extern void ledNumSet(bool onf);
  69. extern void ledSollSet(bool onf);
  70. void reflashLedState(void);