summaryrefslogtreecommitdiff
path: root/app/boards/shields/romac_plus/romac_plus.keymap
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-09-23 20:14:49 -0400
committerGitHub <noreply@github.com>2020-09-23 20:14:49 -0400
commit6ecf62a9ed79c0fb56edf255e3ba443a99af41ac (patch)
treefe4c28595209819ca700b5b77c3a994849e64315 /app/boards/shields/romac_plus/romac_plus.keymap
parent7b53ee51fc9cee61980b424e96a7bddde8dd0c94 (diff)
parent641524b1b9564fd2b433b9bc430736fb3205a3c5 (diff)
Merge pull request #198 from reizero00/romac_plus
RoMac+ v4 Support for nice!nano v1
Diffstat (limited to 'app/boards/shields/romac_plus/romac_plus.keymap')
-rw-r--r--app/boards/shields/romac_plus/romac_plus.keymap49
1 files changed, 49 insertions, 0 deletions
diff --git a/app/boards/shields/romac_plus/romac_plus.keymap b/app/boards/shields/romac_plus/romac_plus.keymap
new file mode 100644
index 0000000..d8d1f78
--- /dev/null
+++ b/app/boards/shields/romac_plus/romac_plus.keymap
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2020 The ZMK Contributors
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#include <behaviors.dtsi>
+#include <dt-bindings/zmk/bt.h>
+#include <dt-bindings/zmk/keys.h>
+
+/ {
+ keymap {
+ compatible = "zmk,keymap";
+
+ default_layer {
+// --------------------------
+// | 7 | 8 | 9 |
+// | 4 | 5 | 6 |
+// | 1 | 2 | 3 |
+// | M_PLAY | 0 | MO(1) |
+// --------------------------
+ bindings = <
+ &kp NUM_7 &kp NUM_8 &kp NUM_9
+ &kp NUM_4 &kp NUM_5 &kp NUM_6
+ &kp NUM_1 &kp NUM_2 &kp NUM_3
+ &cp M_PLAY &kp NUM_0 &mo 1
+ >;
+
+ sensor-bindings = <&inc_dec_cp M_NEXT M_PREV>;
+ };
+
+ nav_layer {
+// --------------------------
+// | BT_CLR | HOME | PGUP |
+// | _ | END | PGDN |
+// | _ | _ | _ |
+// | _ | _ | _ |
+// --------------------------
+ bindings = <
+ &bt BT_CLR &kp HOME &kp PGUP
+ &trans &kp END &kp PGDN
+ &trans &trans &trans
+ &trans &trans &trans
+ >;
+
+ sensor-bindings = <&inc_dec_kp A B>;
+ };
+ };
+}; \ No newline at end of file