diff options
Diffstat (limited to 'quantum/template/template.c')
| -rw-r--r-- | quantum/template/template.c | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/quantum/template/template.c b/quantum/template/template.c index 7dcd67cfc..828afb18c 100644 --- a/quantum/template/template.c +++ b/quantum/template/template.c | |||
| @@ -2,22 +2,38 @@ | |||
| 2 | 2 | ||
| 3 | __attribute__ ((weak)) | 3 | __attribute__ ((weak)) |
| 4 | void matrix_init_user(void) { | 4 | void matrix_init_user(void) { |
| 5 | // leave these blank | 5 | // leave this function blank - it can be defined in a keymap file |
| 6 | } | 6 | return NULL; |
| 7 | }; | ||
| 7 | 8 | ||
| 8 | __attribute__ ((weak)) | 9 | __attribute__ ((weak)) |
| 9 | void matrix_scan_user(void) { | 10 | void matrix_scan_user(void) { |
| 10 | // leave these blank | 11 | // leave this function blank - it can be defined in a keymap file |
| 11 | } | 12 | return NULL; |
| 13 | }; | ||
| 14 | |||
| 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 | ||
| 18 | return NULL; | ||
| 19 | }; | ||
| 12 | 20 | ||
| 13 | void matrix_init_kb(void) { | 21 | void matrix_init_kb(void) { |
| 14 | // put your keyboard start-up code here | 22 | // put your keyboard start-up code here |
| 15 | // runs once when the firmware starts up | 23 | // runs once when the firmware starts up |
| 24 | |||
| 16 | matrix_init_user(); | 25 | matrix_init_user(); |
| 17 | } | 26 | }; |
| 18 | 27 | ||
| 19 | void matrix_scan_kb(void) { | 28 | void matrix_scan_kb(void) { |
| 20 | // put your looping keyboard code here | 29 | // put your looping keyboard code here |
| 21 | // runs every cycle (a lot) | 30 | // runs every cycle (a lot) |
| 31 | |||
| 22 | matrix_scan_user(); | 32 | matrix_scan_user(); |
| 23 | } \ No newline at end of file | 33 | }; |
| 34 | |||
| 35 | void led_set_kb(uint8_t usb_led) { | ||
| 36 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 37 | |||
| 38 | led_set_user(usb_led); | ||
| 39 | }; \ No newline at end of file | ||
