rev1.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #pragma once
  2. #include "levinson.h"
  3. #include "quantum.h"
  4. #ifdef USE_I2C
  5. #include <stddef.h>
  6. #ifdef __AVR__
  7. #include <avr/io.h>
  8. #include <avr/interrupt.h>
  9. #endif
  10. #endif
  11. #ifndef FLIP_HALF
  12. // Standard Keymap
  13. // (TRRS jack on the left half is to the right, TRRS jack on the right half is to the left)
  14. #define LAYOUT( \
  15. L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
  16. L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
  17. L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
  18. L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \
  19. ) \
  20. { \
  21. { L00, L01, L02, L03, L04, L05 }, \
  22. { L10, L11, L12, L13, L14, L15 }, \
  23. { L20, L21, L22, L23, L24, L25 }, \
  24. { L30, L31, L32, L33, L34, L35 }, \
  25. { R05, R04, R03, R02, R01, R00 }, \
  26. { R15, R14, R13, R12, R11, R10 }, \
  27. { R25, R24, R23, R22, R21, R20 }, \
  28. { R35, R34, R33, R32, R31, R30 } \
  29. }
  30. #else
  31. // Keymap with right side flipped
  32. // (TRRS jack on both halves are to the right)
  33. #define LAYOUT( \
  34. L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
  35. L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
  36. L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
  37. L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \
  38. ) \
  39. { \
  40. { L00, L01, L02, L03, L04, L05 }, \
  41. { L10, L11, L12, L13, L14, L15 }, \
  42. { L20, L21, L22, L23, L24, L25 }, \
  43. { L30, L31, L32, L33, L34, L35 }, \
  44. { R00, R01, R02, R03, R04, R05 }, \
  45. { R10, R11, R12, R13, R14, R15 }, \
  46. { R20, R21, R22, R23, R24, R25 }, \
  47. { R30, R31, R32, R33, R34, R35 } \
  48. }
  49. #endif
  50. #define LAYOUT_ortho_4x12 LAYOUT