aboutsummaryrefslogtreecommitdiff
path: root/quantum/template/template.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/template/template.c')
-rw-r--r--quantum/template/template.c32
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))
4void matrix_init_user(void) { 4void 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))
9void matrix_scan_user(void) { 10void 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))
16void 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
13void matrix_init_kb(void) { 21void 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
19void matrix_scan_kb(void) { 28void 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
35void 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