diff options
Diffstat (limited to 'quantum/template/avr/template.c')
| -rw-r--r-- | quantum/template/avr/template.c | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/quantum/template/avr/template.c b/quantum/template/avr/template.c index 1e4ce26cd..86dc69abc 100644 --- a/quantum/template/avr/template.c +++ b/quantum/template/avr/template.c | |||
| @@ -15,29 +15,37 @@ | |||
| 15 | */ | 15 | */ |
| 16 | #include "%KEYBOARD%.h" | 16 | #include "%KEYBOARD%.h" |
| 17 | 17 | ||
| 18 | // Optional override functions below. | ||
| 19 | // You can leave any or all of these undefined. | ||
| 20 | // These are only required if you want to perform custom actions. | ||
| 21 | |||
| 22 | /* | ||
| 23 | |||
| 18 | void matrix_init_kb(void) { | 24 | void matrix_init_kb(void) { |
| 19 | // put your keyboard start-up code here | 25 | // put your keyboard start-up code here |
| 20 | // runs once when the firmware starts up | 26 | // runs once when the firmware starts up |
| 21 | 27 | ||
| 22 | matrix_init_user(); | 28 | matrix_init_user(); |
| 23 | } | 29 | } |
| 24 | 30 | ||
| 25 | void matrix_scan_kb(void) { | 31 | void matrix_scan_kb(void) { |
| 26 | // put your looping keyboard code here | 32 | // put your looping keyboard code here |
| 27 | // runs every cycle (a lot) | 33 | // runs every cycle (a lot) |
| 28 | 34 | ||
| 29 | matrix_scan_user(); | 35 | matrix_scan_user(); |
| 30 | } | 36 | } |
| 31 | 37 | ||
| 32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | 38 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |
| 33 | // put your per-action keyboard code here | 39 | // put your per-action keyboard code here |
| 34 | // runs for every action, just before processing by the firmware | 40 | // runs for every action, just before processing by the firmware |
| 35 | 41 | ||
| 36 | return process_record_user(keycode, record); | 42 | return process_record_user(keycode, record); |
| 37 | } | 43 | } |
| 38 | 44 | ||
| 39 | void led_set_kb(uint8_t usb_led) { | 45 | void led_set_kb(uint8_t usb_led) { |
| 40 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | 46 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here |
| 41 | 47 | ||
| 42 | led_set_user(usb_led); | 48 | led_set_user(usb_led); |
| 43 | } | 49 | } |
| 50 | |||
| 51 | */ | ||
