From 48cad94d7e00e8fa234309f80feacaeaa6561f16 Mon Sep 17 00:00:00 2001 From: Wilba Date: Mon, 6 Apr 2020 00:18:17 +1000 Subject: [PATCH] Added Caps Lock LED handler to wilba.tech PCBs (#8660) --- 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 52a7733683..534511565b 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 ccff6d62c9..4397a97d1a 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; +}