summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorWilba <Jason.S.Williams@gmail.com>2020-04-06 00:18:17 +1000
committerGitHub <noreply@github.com>2020-04-05 15:18:17 +0100
commit48cad94d7e00e8fa234309f80feacaeaa6561f16 (patch)
tree9add12273723898048d66d683537b012a37fc775 /keyboards
parent90665aeec9c90f62ea3687b037624d9fc04ad380 (diff)
Added Caps Lock LED handler to wilba.tech PCBs (#8660)
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/wilba_tech/wt60_d/wt60_d.c13
-rw-r--r--keyboards/wilba_tech/wt69_a/wt69_a.c15
2 files changed, 27 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
*/
-// 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;
+}