summaryrefslogtreecommitdiff
path: root/keyboards/wekey/stelo65/stelo65.c
diff options
context:
space:
mode:
authorUy Bui <uybv.cntt@gmail.com>2022-01-09 12:53:45 +0900
committerGitHub <noreply@github.com>2022-01-08 19:53:45 -0800
commit50d81b63e91c6d16d8f20f52ebd8f216797cab1f (patch)
treeb02dd724bec742dcb4e6e01143801623fb71685a /keyboards/wekey/stelo65/stelo65.c
parent0acc0924db3be0647aaeb61fc002641f84d18d59 (diff)
[Keyboard] Stelo65 (#15102)
* [Keyboard] add new keyboard Stelo * [Keyboard] Stelo encoder action * Update keyboards/wekey/stelo/readme.md * Update keyboards/wekey/stelo/rules.mk * [Keyboard] change name Stelo to Stelo65
Diffstat (limited to 'keyboards/wekey/stelo65/stelo65.c')
-rw-r--r--keyboards/wekey/stelo65/stelo65.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/keyboards/wekey/stelo65/stelo65.c b/keyboards/wekey/stelo65/stelo65.c
new file mode 100644
index 0000000000..922f399a6d
--- /dev/null
+++ b/keyboards/wekey/stelo65/stelo65.c
@@ -0,0 +1,16 @@
+// Copyright 2021 @wekey (@@wekey)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "stelo65.h"
+#include "encoder_actions.h"
+
+void matrix_scan_kb(void) {
+ encoder_action_unregister();
+ matrix_scan_user();
+}
+
+bool encoder_update_kb(uint8_t index, bool clockwise) {
+ if (!encoder_update_user(index, clockwise)) { return false; }
+ encoder_action_register(index, clockwise);
+ return true;
+};