pico.h 1.9 KB

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