diff options
Diffstat (limited to 'keyboards/percent/skog/skog.c')
-rw-r--r-- | keyboards/percent/skog/skog.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/keyboards/percent/skog/skog.c b/keyboards/percent/skog/skog.c index 1c26c550e..241833937 100644 --- a/keyboards/percent/skog/skog.c +++ b/keyboards/percent/skog/skog.c | |||
@@ -19,20 +19,22 @@ ps2avrGB support code by Kenneth A. (bminiex/.[ch]) | |||
19 | 19 | ||
20 | #include "skog.h" | 20 | #include "skog.h" |
21 | 21 | ||
22 | #include "backlight.h" | 22 | void keyboard_pre_init_kb(void) { |
23 | #include "backlight_custom.h" | 23 | led_init_ports(); |
24 | 24 | keyboard_pre_init_user(); | |
25 | #ifdef BACKLIGHT_ENABLE | ||
26 | /// Overrides functions in `quantum.c` | ||
27 | void backlight_init_ports(void) { | ||
28 | b_led_init_ports(); | ||
29 | } | 25 | } |
30 | 26 | ||
31 | void backlight_task(void) { | 27 | void led_init_ports(void) { |
32 | b_led_task(); | 28 | setPinOutput(D1); |
29 | setPinOutput(D6); | ||
30 | writePinHigh(D1); | ||
31 | writePinHigh(D6); | ||
33 | } | 32 | } |
34 | 33 | ||
35 | void backlight_set(uint8_t level) { | 34 | bool led_update_kb(led_t led_state) { |
36 | b_led_set(level); | 35 | if (led_update_user(led_state)) { |
36 | writePin(D1, !led_state.caps_lock); | ||
37 | writePin(D6, !led_state.scroll_lock); | ||
38 | } | ||
39 | return true; | ||
37 | } | 40 | } |
38 | #endif | ||