]> git.donarmstrong.com Git - qmk_firmware.git/blob - quantum/template/template.h
b8e7a0456b19259b82ecb87f3b0117fd47418eb1
[qmk_firmware.git] / quantum / template / template.h
1 #ifndef %KEYBOARD_UPPERCASE%_H
2 #define %KEYBOARD_UPPERCASE%_H
3
4 #include "matrix.h"
5 #include "keymap.h"
6 #ifdef BACKLIGHT_ENABLE
7         #include "backlight.h"
8 #endif
9 #include <avr/io.h>
10 #include <stddef.h>
11
12 // This a shortcut to help you visually see your layout.
13 // The following is an example using the Planck MIT layout
14 // The first section contains all of the arguements
15 // The second converts the arguments into a two-dimensional array
16 #define KEYMAP( \
17     k00, k01, k02, \
18       k10,  k11   \
19 ) \
20 { \
21     { k00, k01,   k02 }, \
22     { k10, KC_NO, k11 }, \
23 }
24
25 void matrix_init_user(void);
26 void matrix_scan_user(void);
27 bool process_action_user(keyrecord_t *record);
28 void led_set_user(uint8_t usb_led);
29
30 #endif