You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.4 KiB

  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_ortho_2x6( \
  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_ortho_2x6( \
  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_ortho_2x3( \
  41. L00, L01, L02, \
  42. L10, L11, L12 \
  43. ) { \
  44. { L00, L01, L02 }, \
  45. { L10, L11, L12 }, \
  46. { ___, ___, ___ }, \
  47. { ___, ___, ___ }, \
  48. }
  49. #define LAYOUT_macro LAYOUT_ortho_2x3
  50. #define LAYOUT_split LAYOUT_ortho_2x6
  51. #ifdef USE_I2C
  52. #error "I2C not Supported"
  53. #endif