aboutsummaryrefslogtreecommitdiff
path: root/keyboards/xd84/xd84.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/xd84/xd84.c')
-rw-r--r--keyboards/xd84/xd84.c29
1 files changed, 9 insertions, 20 deletions
diff --git a/keyboards/xd84/xd84.c b/keyboards/xd84/xd84.c
index f7048f325..eaf531421 100644
--- a/keyboards/xd84/xd84.c
+++ b/keyboards/xd84/xd84.c
@@ -15,29 +15,18 @@
15 */ 15 */
16#include "xd84.h" 16#include "xd84.h"
17 17
18void matrix_init_kb(void) { 18void keyboard_pre_init_kb(void) {
19 // put your keyboard start-up code here 19 setPinOutput(B6);
20 // runs once when the firmware starts up
21 20
22 matrix_init_user(); 21 keyboard_pre_init_user();
23}
24
25void matrix_scan_kb(void) {
26 // put your looping keyboard code here
27 // runs every cycle (a lot)
28
29 matrix_scan_user();
30}
31
32bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
33 // put your per-action keyboard code here
34 // runs for every action, just before processing by the firmware
35
36 return process_record_user(keycode, record);
37} 22}
38 23
39void led_set_kb(uint8_t usb_led) { 24void led_set_kb(uint8_t usb_led) {
40 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here 25 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
26 writePinLow(B6);
27 } else {
28 writePinHigh(B6);
29 }
41 30
42 led_set_user(usb_led); 31 led_set_user(usb_led);
43} 32}