1 #include "%KEYBOARD%.h"
4 void * matrix_init_user(void) {
5 // leave this function blank - it can be defined in a keymap file
10 void * matrix_scan_user(void) {
11 // leave this function blank - it can be defined in a keymap file
15 __attribute__ ((weak))
16 void * led_set_user(uint8_t usb_led) {
17 // leave this function blank - it can be defined in a keymap file
21 void * matrix_init_kb(void) {
22 // put your keyboard start-up code here
23 // runs once when the firmware starts up
25 if (matrix_init_user) {
26 (*matrix_init_user)();
31 void * matrix_scan_kb(void) {
32 // put your looping keyboard code here
33 // runs every cycle (a lot)
35 if (matrix_scan_user) {
36 (*matrix_scan_user)();
41 void * led_set_kb(uint8_t usb_led) {
42 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
45 (*led_set_user)(usb_led);