summaryrefslogtreecommitdiffstats
path: root/keyboards/mechwild/bbs/bbs.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-07-14 06:27:11 +0000
committerQMK Bot <hello@qmk.fm>2022-07-14 06:27:11 +0000
commit9b04e9be0489b88c6845fb2b4f7617f7cc7d9e54 (patch)
treef77da672463b9ee12f70cb33f6d1b0b3ec28a87b /keyboards/mechwild/bbs/bbs.c
parent633df1f365772e3e36ef1d199397fb05892dac7e (diff)
parentacc11f4941649a92fad4588e0598ee808e493cb1 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/mechwild/bbs/bbs.c')
-rw-r--r--keyboards/mechwild/bbs/bbs.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/keyboards/mechwild/bbs/bbs.c b/keyboards/mechwild/bbs/bbs.c
new file mode 100644
index 0000000000..cbfaa5ce59
--- /dev/null
+++ b/keyboards/mechwild/bbs/bbs.c
@@ -0,0 +1,22 @@
+// Copyright 2022 Kyle McCreery (@kylemccreery)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "bbs.h"
+
+#ifdef DIP_SWITCH_ENABLE
+bool dip_switch_update_kb(uint8_t index, bool active) {
+ if (!dip_switch_update_user(index, active)) { return false; }
+ switch (index) {
+ case 0:
+ if(active) { tap_code(KC_CLCK); }
+ break;
+ break;
+ }
+ return true;
+}
+#endif
+
+void eeconfig_init_kb() {
+ steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT
+ eeconfig_init_user();
+} \ No newline at end of file