template.h 661 B

123456789101112131415161718192021222324252627
  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, \
  13. k10, k11 \
  14. ) \
  15. { \
  16. { k00, k01, k02 }, \
  17. { k10, KC_NO, k11 }, \
  18. }
  19. void matrix_init_user(void);
  20. void matrix_scan_user(void);
  21. void process_action_user(keyrecord_t *record);
  22. void led_set_user(uint8_t usb_led);
  23. #endif