sockets.h 1.8 KB

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