template.h 1005 B

1234567891011121314151617181920212223242526272829
  1. #ifndef %KEYBOARD_UPPERCASE%_H
  2. #define %KEYBOARD_UPPERCASE%_H
  3. #include "matrix.h"
  4. #include "keymap_common.h"
  5. #include "backlight.h"
  6. #include <stddef.h>
  7. // This a shortcut to help you visually see your layout.
  8. // The following is an example using the Planck MIT layout
  9. // The first section contains all of the arguements
  10. // The second converts the arguments into a two-dimensional array
  11. #define KEYMAP( \
  12. k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
  13. k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
  14. k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
  15. k30, k31, k32, k33, k34, k35, k37, k38, k39, k3a, k3b \
  16. ) \
  17. { \
  18. { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \
  19. { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \
  20. { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \
  21. { k30, k31, k32, k33, k34, k35, k35, k37, k38, k39, k3a, k3b } \
  22. }
  23. void * matrix_init_user(void);
  24. void * matrix_scan_user(void);
  25. #endif