diff options
Diffstat (limited to 'keyboards/wheatfield/split75/split75.c')
-rw-r--r-- | keyboards/wheatfield/split75/split75.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/keyboards/wheatfield/split75/split75.c b/keyboards/wheatfield/split75/split75.c index 3ed456292..b8a3fe6c2 100644 --- a/keyboards/wheatfield/split75/split75.c +++ b/keyboards/wheatfield/split75/split75.c | |||
@@ -1,25 +1 @@ | |||
1 | #include "split75.h" | #include "split75.h" | |
2 | |||
3 | #include "i2c_master.h" | ||
4 | |||
5 | |||
6 | void keyboard_pre_init_kb(void) { | ||
7 | led_init_ports(); | ||
8 | keyboard_pre_init_user(); | ||
9 | } | ||
10 | |||
11 | void led_init_ports(void) { | ||
12 | setPinOutput(NUMLOCK_LED_PIN); | ||
13 | setPinOutput(CAPSLOCK_LED_PIN); | ||
14 | setPinOutput(SCROLLLOCK_LED_PIN); | ||
15 | } | ||
16 | |||
17 | bool led_update_kb(led_t led_state) { | ||
18 | bool res = led_update_user(led_state); | ||
19 | if(res) { | ||
20 | writePin(NUMLOCK_LED_PIN, led_state.num_lock); | ||
21 | writePin(CAPSLOCK_LED_PIN, led_state.caps_lock); | ||
22 | writePin(SCROLLLOCK_LED_PIN, led_state.scroll_lock); | ||
23 | } | ||
24 | return res; | ||
25 | } | ||