aboutsummaryrefslogtreecommitdiff
path: root/keyboards/jc65/v32u4/v32u4.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/jc65/v32u4/v32u4.c')
-rw-r--r--keyboards/jc65/v32u4/v32u4.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/keyboards/jc65/v32u4/v32u4.c b/keyboards/jc65/v32u4/v32u4.c
index c69c5d531..a6837268e 100644
--- a/keyboards/jc65/v32u4/v32u4.c
+++ b/keyboards/jc65/v32u4/v32u4.c
@@ -1,36 +1 @@
1#include "v32u4.h" #include "v32u4.h"
2
3void matrix_init_kb(void) {
4 // put your keyboard start-up code here
5 // runs once when the firmware starts up
6
7 matrix_init_user();
8}
9
10void matrix_scan_kb(void) {
11 // put your looping keyboard code here
12 // runs every cycle (a lot)
13
14 matrix_scan_user();
15}
16
17bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
18 // put your per-action keyboard code here
19 // runs for every action, just before processing by the firmware
20
21 return process_record_user(keycode, record);
22}
23
24void led_set_kb(uint8_t usb_led) {
25 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
26 if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
27 // output low
28 DDRB |= (1<<2);
29 PORTB &= ~(1<<2);
30 } else {
31 // Hi-Z
32 DDRB &= ~(1<<2);
33 PORTB &= ~(1<<2);
34 }
35 led_set_user(usb_led);
36}