summaryrefslogtreecommitdiffstats
path: root/keyboards/0xcb/splaytoraid/keymaps/default
diff options
context:
space:
mode:
authorConor Burns <mail@conor-burns.com>2023-03-15 16:53:02 +0100
committerGitHub <noreply@github.com>2023-03-15 15:53:02 +0000
commitc18d5ebd2dff2615283931e2efe79cfdb2a550f2 (patch)
tree8e5dc85375d05f43f337bab1580fb3bf6981310d /keyboards/0xcb/splaytoraid/keymaps/default
parent915d7a18d757ddb22498d66b82c6309077cdb178 (diff)
add new board: splaytoraid (#20052)
Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com>
Diffstat (limited to 'keyboards/0xcb/splaytoraid/keymaps/default')
-rw-r--r--keyboards/0xcb/splaytoraid/keymaps/default/keymap.c49
-rw-r--r--keyboards/0xcb/splaytoraid/keymaps/default/rules.mk1
2 files changed, 50 insertions, 0 deletions
diff --git a/keyboards/0xcb/splaytoraid/keymaps/default/keymap.c b/keyboards/0xcb/splaytoraid/keymaps/default/keymap.c
new file mode 100644
index 0000000000..e9dc9a50a0
--- /dev/null
+++ b/keyboards/0xcb/splaytoraid/keymaps/default/keymap.c
@@ -0,0 +1,49 @@
+// Copyright 2023 Conor Burns (@Conor-Burns)
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include QMK_KEYBOARD_H
+
+enum layer_names {
+ _BASE,
+ _LOWER,
+ _RAISE,
+ _ADJUST
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BASE] = LAYOUT_40(
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
+ KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
+ KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
+ KC_LSFT, KC_ESC, KC_ENT, KC_MPLY, KC_SPC, KC_DEL, KC_RSFT
+ ),
+
+ [_LOWER] = LAYOUT_40(
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______
+ ),
+
+ [_RAISE] = LAYOUT_40(
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______
+ ),
+
+ [_ADJUST] = LAYOUT_40(
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______
+ )
+};
+
+
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+ [_BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+ [_LOWER] = { ENCODER_CCW_CW(KC_MPRV, KC_MNXT) },
+ [_RAISE] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
+ [_ADJUST] = { ENCODER_CCW_CW(KC_RGHT, KC_LEFT) }
+};
diff --git a/keyboards/0xcb/splaytoraid/keymaps/default/rules.mk b/keyboards/0xcb/splaytoraid/keymaps/default/rules.mk
new file mode 100644
index 0000000000..ee32568148
--- /dev/null
+++ b/keyboards/0xcb/splaytoraid/keymaps/default/rules.mk
@@ -0,0 +1 @@
+ENCODER_MAP_ENABLE = yes