traveller.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. #ifndef TRAVELLER_H
  2. #define TRAVELLER_H
  3. #include "quantum.h"
  4. #include "led.h"
  5. #ifdef RGBLIGHT_ENABLE
  6. #include "rgblight.h"
  7. #endif
  8. #ifdef BACKLIGHT_ENABLE
  9. #include "backlight.h"
  10. #endif
  11. // This a shortcut to help you visually see your layout.
  12. // The first section contains all of the arguements
  13. // The second converts the arguments into a two-dimensional array
  14. #define KEYMAP( \
  15. k00, k01, k02, k03, k04, k05, k07, k08, k09, k0a, k0b, k0c, \
  16. k10, k11, k12, k13, k14, k15, k17, k18, k19, k1a, k1b, k1c, \
  17. k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, \
  18. k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c \
  19. ) \
  20. { \
  21. { k00, k01, k02, k03, k04, k05, KC_NO, k07, k08, k09, k0a, k0b, k0c }, \
  22. { k10, k11, k12, k13, k14, k15, KC_NO, k17, k18, k19, k1a, k1b, k1c }, \
  23. { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c }, \
  24. { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c } \
  25. }
  26. #endif