6lit.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* Copyright 2018
  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. #pragma once
  17. #include "quantum.h"
  18. #define ________ KC_NO
  19. #ifndef FLIP_HALF
  20. #define LAYOUT_split( \
  21. L00, L01, L02, R00, R01, R02, \
  22. L10, L11, L12, R10, R11, R12 \
  23. ) { \
  24. { L00, L01, L02 }, \
  25. { L10, L11, L12 }, \
  26. { R02, R01, R00 }, \
  27. { R12, R11, R10 }, \
  28. }
  29. #else
  30. #define LAYOUT_split( \
  31. L00, L01, L02, R00, R01, R02, \
  32. L10, L11, L12, R10, R11, R12 \
  33. ) { \
  34. { L00, L01, L02 }, \
  35. { L10, L11, L12 }, \
  36. { R00, R01, R02 }, \
  37. { R10, R11, R12 }, \
  38. }
  39. #endif
  40. #define LAYOUT_macro( \
  41. L00, L01, L02, \
  42. L10, L11, L12 \
  43. ) { \
  44. { L00, L01, L02 }, \
  45. { L10, L11, L12 }, \
  46. }
  47. #define LAYOUT LAYOUT_macro
  48. #ifdef USE_I2C
  49. #error "I2C not Supported"
  50. #endif