keyhive.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* Copyright
  2. * 2021 solartempest
  3. * 2021 QMK
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #pragma once
  19. #include "quantum.h"
  20. // clang-format off
  21. #define LAYOUT( \
  22. LA1, LA2, LA3, LA4, LA5, LA6, RA6, RA5, RA4, RA3, RA2, RA1, \
  23. LB1, LB2, LB3, LB4, LB5, LB6, RB6, RB5, RB4, RB3, RB2, RB1, \
  24. LC1, LC2, LC3, LC4, LC5, LC6, RC6, RC5, RC4, RC3, RC2, RC1, \
  25. LD1, LD2, LD3, LD4, LD5, LD6, LE1, RE6, RD6, RD5, RD4, RD3, RD2, RD1, \
  26. LE2, LE3, LE4, LE5, LE6, RE5, RE4, RE3, RE2, RE1 \
  27. ) \
  28. { \
  29. { LA1, LA2, LA3, LA4, LA5, LA6, KC_NO }, \
  30. { LB1, LB2, LB3, LB4, LB5, LB6, KC_NO }, \
  31. { LC1, LC2, LC3, LC4, LC5, LC6, KC_NO }, \
  32. { LD1, LD2, LD3, LD4, LD5, LD6, KC_NO }, \
  33. { LE1, LE2, LE3, LE4, LE5, LE6, KC_NO }, \
  34. { RA1, RA2, RA3, RA4, RA5, RA6, KC_NO }, \
  35. { RB1, RB2, RB3, RB4, RB5, RB6, KC_NO }, \
  36. { RC1, RC2, RC3, RC4, RC5, RC6, KC_NO }, \
  37. { RD1, RD2, RD3, RD4, RD5, RD6, KC_NO }, \
  38. { RE1, RE2, RE3, RE4, RE5, RE6, KC_NO } \
  39. }
  40. //RGB LED Conversion macro from physical array to electric array (+146 to firmware size)
  41. // clang-format on