rev1.h 1.7 KB

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