aboutsummaryrefslogtreecommitdiff
path: root/keyboards/bpiphany/kitten_paw/kitten_paw.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/bpiphany/kitten_paw/kitten_paw.c')
-rw-r--r--keyboards/bpiphany/kitten_paw/kitten_paw.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/keyboards/bpiphany/kitten_paw/kitten_paw.c b/keyboards/bpiphany/kitten_paw/kitten_paw.c
index 26cb533f2..e71b3c801 100644
--- a/keyboards/bpiphany/kitten_paw/kitten_paw.c
+++ b/keyboards/bpiphany/kitten_paw/kitten_paw.c
@@ -1,51 +1 @@
1#include "kitten_paw.h" #include "kitten_paw.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
17__attribute__ ((weak))
18void matrix_init_user(void) {
19}
20
21__attribute__ ((weak))
22void matrix_scan_user(void) {
23}
24
25bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
26 // put your per-action keyboard code here
27 // runs for every action, just before processing by the firmware
28
29 return process_record_user(keycode, record);
30}
31
32void led_set_kb(uint8_t usb_led) {
33 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
34 CONFIG_LED_IO;
35 CONFIG_LED_IO;
36 print_dec(usb_led);
37 if (usb_led & (1<<USB_LED_CAPS_LOCK))
38 USB_LED_CAPS_LOCK_ON;
39 else
40 USB_LED_CAPS_LOCK_OFF;
41
42 if (usb_led & (1<<USB_LED_NUM_LOCK))
43 USB_LED_NUM_LOCK_ON;
44 else
45 USB_LED_NUM_LOCK_OFF;
46 if (usb_led & (1<<USB_LED_SCROLL_LOCK))
47 USB_LED_SCROLL_LOCK_ON;
48 else
49 USB_LED_SCROLL_LOCK_OFF;
50 led_set_user(usb_led);
51}