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.

67 lines
1.9 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_3x10( \
  21. L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
  22. L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
  23. L20, L21, L22, L23, L24, R20, R21, R22, R23, R24 \
  24. ) { \
  25. { L00, L01, L02, L03, L04 }, \
  26. { L10, L11, L12, L13, L14 }, \
  27. { L20, L21, L22, L23, L24 }, \
  28. { R04, R03, R02, R01, R00 }, \
  29. { R14, R13, R12, R11, R10 }, \
  30. { R24, R23, R22, R21, R20 } \
  31. }
  32. #else
  33. #define LAYOUT_ortho_3x10( \
  34. L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
  35. L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
  36. L20, L21, L22, L23, L24, R20, R21, R22, R23, R24 \
  37. ) { \
  38. { L00, L01, L02, L03, L04 }, \
  39. { L10, L11, L12, L13, L14 }, \
  40. { L20, L21, L22, L23, L24 }, \
  41. { R00, R01, R02, R03, R04 }, \
  42. { R10, R11, R12, R13, R14 }, \
  43. { R20, R21, R22, R23, R24 } \
  44. }
  45. #endif
  46. #define LAYOUT_ortho_3x5( \
  47. L00, L01, L02, L03, L04, \
  48. L10, L11, L12, L13, L14, \
  49. L20, L21, L22, L23, L24 \
  50. ) { \
  51. { L00, L01, L02, L03, L04 }, \
  52. { L10, L11, L12, L13, L14 }, \
  53. { L20, L21, L22, L23, L24 }, \
  54. { ___, ___, ___, ___, ___ }, \
  55. { ___, ___, ___, ___, ___ }, \
  56. { ___, ___, ___, ___, ___ } \
  57. }
  58. #define LAYOUT_macro LAYOUT_ortho_3x5
  59. #define LAYOUT_split LAYOUT_ortho_3x10
  60. #ifdef USE_I2C
  61. #error "I2C not Supported"
  62. #endif