rev1.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #ifndef REV1_H
  2. #define REV1_H
  3. #include "nyquist.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 KEYMAP( \
  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. L40, L41, L42, L43, L44, L45, R40, R41, R42, R43, R44, R45 \
  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. { L40, L41, L42, L43, L44, L45 }, \
  30. { R05, R04, R03, R02, R01, R00 }, \
  31. { R15, R14, R13, R12, R11, R10 }, \
  32. { R25, R24, R23, R22, R21, R20 }, \
  33. { R35, R34, R33, R32, R31, R30 }, \
  34. { R45, R44, R43, R42, R41, R40 } \
  35. }
  36. #else
  37. // Keymap with right side flipped
  38. // (TRRS jack on both halves are to the right)
  39. #define KEYMAP( \
  40. L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
  41. L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
  42. L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
  43. L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35, \
  44. L40, L41, L42, L43, L44, L45, R40, R41, R42, R43, R44, R45 \
  45. ) \
  46. { \
  47. { L00, L01, L02, L03, L04, L05 }, \
  48. { L10, L11, L12, L13, L14, L15 }, \
  49. { L20, L21, L22, L23, L24, L25 }, \
  50. { L30, L31, L32, L33, L34, L35 }, \
  51. { L40, L41, L42, L43, L44, L45 }, \
  52. { R00, R01, R02, R03, R04, R05 }, \
  53. { R10, R11, R12, R13, R14, R15 }, \
  54. { R20, R21, R22, R23, R24, R25 }, \
  55. { R30, R31, R32, R33, R34, R35 }, \
  56. { R40, R41, R42, R43, R44, R45 } \
  57. }
  58. #endif
  59. #define LAYOUT_ortho_5x12 KEYMAP
  60. #endif