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.

70 lines
2.3 KiB

2 years ago
  1. /* Copyright 2022 Gerry Sihaj
  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 "lets_split.h"
  18. #include "quantum.h"
  19. #ifdef USE_I2C
  20. #include <stddef.h>
  21. #ifdef __AVR__
  22. #include <avr/io.h>
  23. #include <avr/interrupt.h>
  24. #endif
  25. #endif
  26. #ifndef FLIP_HALF
  27. // Standard Keymap
  28. // (TRRS jack on the left half is to the right, TRRS jack on the right half is to the left)
  29. #define LAYOUT( \
  30. L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
  31. L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
  32. L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
  33. L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \
  34. ) \
  35. { \
  36. { L00, L01, L02, L03, L04, L05 }, \
  37. { L10, L11, L12, L13, L14, L15 }, \
  38. { L20, L21, L22, L23, L24, L25 }, \
  39. { L30, L31, L32, L33, L34, L35 }, \
  40. { R05, R04, R03, R02, R01, R00 }, \
  41. { R15, R14, R13, R12, R11, R10 }, \
  42. { R25, R24, R23, R22, R21, R20 }, \
  43. { R35, R34, R33, R32, R31, R30 } \
  44. }
  45. #else
  46. // Keymap with right side flipped
  47. // (TRRS jack on both halves are to the right)
  48. #define LAYOUT( \
  49. L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
  50. L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
  51. L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
  52. L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \
  53. ) \
  54. { \
  55. { L00, L01, L02, L03, L04, L05 }, \
  56. { L10, L11, L12, L13, L14, L15 }, \
  57. { L20, L21, L22, L23, L24, L25 }, \
  58. { L30, L31, L32, L33, L34, L35 }, \
  59. { R00, R01, R02, R03, R04, R05 }, \
  60. { R10, R11, R12, R13, R14, R15 }, \
  61. { R20, R21, R22, R23, R24, R25 }, \
  62. { R30, R31, R32, R33, R34, R35 } \
  63. }
  64. #endif
  65. #define LAYOUT_ortho_4x12 LAYOUT