summaryrefslogtreecommitdiff
path: root/keyboards/treasure/type9s2/keymaps
diff options
context:
space:
mode:
authorTreasureTypes <73436366+TreasureTypes@users.noreply.github.com>2021-07-29 18:50:05 +0200
committerGitHub <noreply@github.com>2021-07-29 09:50:05 -0700
commit5a0985aa4a10ae15d3c3eb49a0394b10a62160ae (patch)
tree99e65df2d213ebdc7be568ed3bdee1f320c30b7b /keyboards/treasure/type9s2/keymaps
parentaa0b7079a4a7a3174c7f078fc5fa81e630df1775 (diff)
[Keyboard] Add Treasure TYPE-9 Series II (#13725)
Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/treasure/type9s2/keymaps')
-rw-r--r--keyboards/treasure/type9s2/keymaps/default/keymap.c43
-rw-r--r--keyboards/treasure/type9s2/keymaps/default/readme.md1
-rw-r--r--keyboards/treasure/type9s2/keymaps/via/keymap.c43
-rw-r--r--keyboards/treasure/type9s2/keymaps/via/readme.md1
-rw-r--r--keyboards/treasure/type9s2/keymaps/via/rules.mk1
5 files changed, 89 insertions, 0 deletions
diff --git a/keyboards/treasure/type9s2/keymaps/default/keymap.c b/keyboards/treasure/type9s2/keymaps/default/keymap.c
new file mode 100644
index 0000000000..35e789a95d
--- /dev/null
+++ b/keyboards/treasure/type9s2/keymaps/default/keymap.c
@@ -0,0 +1,43 @@
+/* Copyright 2021 Treasure
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT_ortho_3x3(
+ MO(1), KC_MPLY, BL_STEP,
+ KC_VOLD, KC_MUTE, KC_VOLU,
+ KC_KP_1, KC_KP_2, KC_KP_3
+ ),
+
+ [1] = LAYOUT_ortho_3x3(
+ _______, _______, MO(2),
+ _______, _______, _______,
+ _______, _______, _______
+ ),
+
+ [2] = LAYOUT_ortho_3x3(
+ _______, _______, _______,
+ _______, _______, _______,
+ _______, _______, MO(3)
+ ),
+
+ [3] = LAYOUT_ortho_3x3(
+ _______, _______, _______,
+ _______, _______, _______,
+ RESET, _______, _______
+ )
+};
diff --git a/keyboards/treasure/type9s2/keymaps/default/readme.md b/keyboards/treasure/type9s2/keymaps/default/readme.md
new file mode 100644
index 0000000000..76778b088b
--- /dev/null
+++ b/keyboards/treasure/type9s2/keymaps/default/readme.md
@@ -0,0 +1 @@
+# The default keymap for Type-9 Series II
diff --git a/keyboards/treasure/type9s2/keymaps/via/keymap.c b/keyboards/treasure/type9s2/keymaps/via/keymap.c
new file mode 100644
index 0000000000..a3e959a9fc
--- /dev/null
+++ b/keyboards/treasure/type9s2/keymaps/via/keymap.c
@@ -0,0 +1,43 @@
+/* Copyright 2021 Treasure
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT_ortho_3x3(
+ KC_KP_7, KC_KP_8, KC_KP_9,
+ KC_KP_4, LT(1, KC_KP_5), KC_KP_6,
+ KC_KP_1, KC_KP_2, KC_KP_3
+ ),
+
+ [1] = LAYOUT_ortho_3x3(
+ _______, _______, _______,
+ _______, _______, _______,
+ _______, _______, _______
+ ),
+
+ [2] = LAYOUT_ortho_3x3(
+ _______, _______, _______,
+ _______, _______, _______,
+ _______, _______, _______
+ ),
+
+ [3] = LAYOUT_ortho_3x3(
+ _______, _______, _______,
+ _______, _______, _______,
+ _______, _______, _______
+ )
+};
diff --git a/keyboards/treasure/type9s2/keymaps/via/readme.md b/keyboards/treasure/type9s2/keymaps/via/readme.md
new file mode 100644
index 0000000000..76778b088b
--- /dev/null
+++ b/keyboards/treasure/type9s2/keymaps/via/readme.md
@@ -0,0 +1 @@
+# The default keymap for Type-9 Series II
diff --git a/keyboards/treasure/type9s2/keymaps/via/rules.mk b/keyboards/treasure/type9s2/keymaps/via/rules.mk
new file mode 100644
index 0000000000..1e5b99807c
--- /dev/null
+++ b/keyboards/treasure/type9s2/keymaps/via/rules.mk
@@ -0,0 +1 @@
+VIA_ENABLE = yes