]> git.donarmstrong.com Git - qmk_firmware.git/blob - quantum/template/template.c
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
[qmk_firmware.git] / quantum / template / template.c
1 #include "%KEYBOARD%.h"
2
3 __attribute__ ((weak))
4 void matrix_init_user(void) {
5         // leave these blank
6 }
7
8 __attribute__ ((weak))
9 void matrix_scan_user(void) {
10         // leave these blank
11 }
12
13 void matrix_init_kb(void) {
14         // put your keyboard start-up code here
15         // runs once when the firmware starts up
16         matrix_init_user();
17 }
18
19 void matrix_scan_kb(void) {
20         // put your looping keyboard code here
21         // runs every cycle (a lot)
22         matrix_scan_user();
23 }