summaryrefslogtreecommitdiff
path: root/keyboards/ramonimbao/wete/wete.c
diff options
context:
space:
mode:
authorRamon Imbao <ramonimbao@gmail.com>2020-06-28 22:09:14 +0800
committerGitHub <noreply@github.com>2020-06-28 15:09:14 +0100
commitb87895dc1246065ac05487d5715fab0e734fc5bd (patch)
treea41ea644ed65055e0ad33fd999fc0f1ef36c509a /keyboards/ramonimbao/wete/wete.c
parent2344b6865a26298fe8e1bc0c5ea2a6082271ebff (diff)
downloadqmk_firmware-b87895dc1246065ac05487d5715fab0e734fc5bd.tar.gz
qmk_firmware-b87895dc1246065ac05487d5715fab0e734fc5bd.zip
Move Wete to ramonimbao folder (#9569)
* [Breaking] Move Wete to ramonimbao folder * Delete files * Move files with git instead * Update readme with new directory
Diffstat (limited to 'keyboards/ramonimbao/wete/wete.c')
-rw-r--r--keyboards/ramonimbao/wete/wete.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/keyboards/ramonimbao/wete/wete.c b/keyboards/ramonimbao/wete/wete.c
new file mode 100644
index 0000000000..181183c704
--- /dev/null
+++ b/keyboards/ramonimbao/wete/wete.c
@@ -0,0 +1,19 @@
+#include "wete.h"
+
+void keyboard_pre_init_user(void) {
+ // Initialize indicator LED pins
+ setPinOutput(A14); // Num Lock
+ setPinOutput(A15); // Scroll Lock
+ setPinOutput(B3); // Caps Lock
+}
+
+bool led_update_kb(led_t led_state) {
+ bool res = led_update_user(led_state);
+ if (res) {
+ writePin(A14, !led_state.num_lock);
+ writePin(A15, !led_state.scroll_lock);
+ writePin(B3, !led_state.caps_lock);
+ }
+
+ return res;
+}