aboutsummaryrefslogtreecommitdiff
path: root/keyboards/xbows/knight/knight.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/xbows/knight/knight.c')
-rw-r--r--keyboards/xbows/knight/knight.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/keyboards/xbows/knight/knight.c b/keyboards/xbows/knight/knight.c
index dcc5035d5..cb79d9d58 100644
--- a/keyboards/xbows/knight/knight.c
+++ b/keyboards/xbows/knight/knight.c
@@ -1,23 +1 @@
1#include "knight.h" #include "knight.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 led_init_ports();
9}
10
11void led_init_ports(void) {
12 setPinOutput(D1);
13 writePinHigh(D1);
14 setPinOutput(C7);
15 writePinHigh(C7);
16}
17bool led_update_kb(led_t led_state) {
18 if(led_update_user(led_state)) {
19 writePin(C7, !led_state.caps_lock);
20 writePin(D1, !led_state.num_lock);
21 }
22 return true;
23}