From abf8be253c537a77d8eb88c4bbeabed647499812 Mon Sep 17 00:00:00 2001 From: Wilba6582 Date: Fri, 3 Apr 2020 13:07:29 +1100 Subject: [PATCH] Added Caps Lock LED handler --- keyboards/wilba_tech/wt60_d/wt60_d.c | 13 +++++++++++++ keyboards/wilba_tech/wt69_a/wt69_a.c | 15 ++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/keyboards/wilba_tech/wt60_d/wt60_d.c b/keyboards/wilba_tech/wt60_d/wt60_d.c index 52a7733683fb..534511565b5c 100644 --- a/keyboards/wilba_tech/wt60_d/wt60_d.c +++ b/keyboards/wilba_tech/wt60_d/wt60_d.c @@ -1 +1,14 @@ #include "wt60_d.h" + +void keyboard_pre_init_kb(void) { + setPinOutput(F1); + + keyboard_pre_init_user(); +} + +bool led_update_kb(led_t led_state) { + if (led_update_user(led_state)) { + writePin(F1, led_state.caps_lock); + } + return true; +} diff --git a/keyboards/wilba_tech/wt69_a/wt69_a.c b/keyboards/wilba_tech/wt69_a/wt69_a.c index ccff6d62c94b..4397a97d1a8d 100644 --- a/keyboards/wilba_tech/wt69_a/wt69_a.c +++ b/keyboards/wilba_tech/wt69_a/wt69_a.c @@ -14,4 +14,17 @@ * along with this program. If not, see . */ -// Nothing to see here, move along... ;-) +#include "wt69_a.h" + +void keyboard_pre_init_kb(void) { + setPinOutput(F1); + + keyboard_pre_init_user(); +} + +bool led_update_kb(led_t led_state) { + if (led_update_user(led_state)) { + writePin(F1, led_state.caps_lock); + } + return true; +}