25.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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_5x10( \
  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. L30, L31, L32, L33, L34, R30, R31, R32, R33, R34, \
  25. L40, L41, L42, L43, L44, R40, R41, R42, R43, R44 \
  26. ) { \
  27. { L00, L01, L02, L03, L04 }, \
  28. { L10, L11, L12, L13, L14 }, \
  29. { L20, L21, L22, L23, L24 }, \
  30. { L30, L31, L32, L33, L34 }, \
  31. { L40, L41, L42, L43, L44 }, \
  32. { R04, R03, R02, R01, R00 }, \
  33. { R14, R13, R12, R11, R10 }, \
  34. { R24, R23, R22, R21, R20 }, \
  35. { R34, R33, R32, R31, R30 }, \
  36. { R44, R43, R42, R41, R40 } \
  37. }
  38. #else
  39. #define LAYOUT_ortho_5x10( \
  40. L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
  41. L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
  42. L20, L21, L22, L23, L24, R20, R21, R22, R23, R24, \
  43. L30, L31, L32, L33, L34, R30, R31, R32, R33, R34, \
  44. L40, L41, L42, L43, L44, R40, R41, R42, R43, R44 \
  45. ) { \
  46. { L00, L01, L02, L03, L04 }, \
  47. { L10, L11, L12, L13, L14 }, \
  48. { L20, L21, L22, L23, L24 }, \
  49. { L30, L31, L32, L33, L34 }, \
  50. { L40, L41, L42, L43, L44 }, \
  51. { R00, R01, R02, R03, R04 }, \
  52. { R10, R11, R12, R13, R14 }, \
  53. { R20, R21, R22, R23, R24 }, \
  54. { R30, R31, R32, R33, R34 }, \
  55. { R40, R41, R42, R43, R44 } \
  56. }
  57. #endif
  58. #define LAYOUT_ortho_5x5( \
  59. L00, L01, L02, L03, L04, \
  60. L10, L11, L12, L13, L14, \
  61. L20, L21, L22, L23, L24, \
  62. L30, L31, L32, L33, L34, \
  63. L40, L41, L42, L43, L44 \
  64. ) { \
  65. { L00, L01, L02, L03, L04 }, \
  66. { L10, L11, L12, L13, L14 }, \
  67. { L20, L21, L22, L23, L24 }, \
  68. { L30, L31, L32, L33, L34 }, \
  69. { L40, L41, L42, L43, L44 }, \
  70. { ___, ___, ___, ___, ___ }, \
  71. { ___, ___, ___, ___, ___ }, \
  72. { ___, ___, ___, ___, ___ }, \
  73. { ___, ___, ___, ___, ___ }, \
  74. { ___, ___, ___, ___, ___ } \
  75. }
  76. #define LAYOUT_macro LAYOUT_ortho_5x5
  77. #define LAYOUT_split LAYOUT_ortho_5x10
  78. #ifdef USE_I2C
  79. #error "I2C not Supported"
  80. #endif