qmk-firmware/quantum/template/template.c

23 lines
435 B
C
Raw Normal View History

2015-10-27 19:33:18 +01:00
#include "%KEYBOARD%.h"
__attribute__ ((weak))
void matrix_init_user(void) {
2015-10-27 19:33:18 +01:00
// leave these blank
}
2015-10-27 19:33:18 +01:00
__attribute__ ((weak))
void matrix_scan_user(void) {
2015-10-27 19:33:18 +01:00
// leave these blank
}
2015-10-27 19:33:18 +01:00
void matrix_init_kb(void) {
2015-10-27 19:33:18 +01:00
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
2015-10-27 19:33:18 +01:00
void matrix_scan_kb(void) {
2015-10-27 19:33:18 +01:00
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}