summaryrefslogtreecommitdiff
path: root/keyboards/nightly_boards/octopadplus/keymaps/default
diff options
context:
space:
mode:
authorDeskDaily <65656486+DeskDaily@users.noreply.github.com>2022-10-21 10:21:04 +0800
committerGitHub <noreply@github.com>2022-10-20 19:21:04 -0700
commit693303ddbc24e37dba8db5e5914990e598c5df74 (patch)
treec4bae0e662c83ac52364355516633ad611df44ff /keyboards/nightly_boards/octopadplus/keymaps/default
parent2c3859fbf7f4253dc8d3751063e5e64145cd2a8c (diff)
[Keyboard] Add Octopad+ Keyboard (#18484)
Co-authored-by: Neil Brian Ramirez <nightlyboards@gmail.com>
Diffstat (limited to 'keyboards/nightly_boards/octopadplus/keymaps/default')
-rw-r--r--keyboards/nightly_boards/octopadplus/keymaps/default/keymap.c54
-rw-r--r--keyboards/nightly_boards/octopadplus/keymaps/default/rules.mk1
2 files changed, 55 insertions, 0 deletions
diff --git a/keyboards/nightly_boards/octopadplus/keymaps/default/keymap.c b/keyboards/nightly_boards/octopadplus/keymaps/default/keymap.c
new file mode 100644
index 0000000000..0929f354ef
--- /dev/null
+++ b/keyboards/nightly_boards/octopadplus/keymaps/default/keymap.c
@@ -0,0 +1,54 @@
+/* Copyright 2022 DeskDaily
+ *
+ * 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(
+ KC_MUTE, KC_MYCM,
+ KC_Q, KC_W, KC_E, KC_R,
+ KC_A, KC_S, KC_D, KC_F
+
+ ),
+ [1] = LAYOUT(
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+
+ ),
+ [2] = LAYOUT(
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+
+ ),
+ [3] = LAYOUT(
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+
+ ),
+
+};
+
+#if defined(ENCODER_MAP_ENABLE)
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+ [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_BRID, KC_BRIU) },
+ [1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
+ [2] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
+ [3] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
+ };
+#endif \ No newline at end of file
diff --git a/keyboards/nightly_boards/octopadplus/keymaps/default/rules.mk b/keyboards/nightly_boards/octopadplus/keymaps/default/rules.mk
new file mode 100644
index 0000000000..a40474b4d5
--- /dev/null
+++ b/keyboards/nightly_boards/octopadplus/keymaps/default/rules.mk
@@ -0,0 +1 @@
+ENCODER_MAP_ENABLE = yes \ No newline at end of file