sockets.h 1.6 KB

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