summaryrefslogtreecommitdiff
path: root/keyboards/cxt_studio
diff options
context:
space:
mode:
authorBrian McKenna <brian@brianmckenna.org>2023-08-12 14:22:11 +0530
committerGitHub <noreply@github.com>2023-08-12 01:52:11 -0700
commit3831407da9e63be833098afb96e7147e7b0d6940 (patch)
treebfe05efa2116bf76bef2aaa67ddecb7af780bbf0 /keyboards/cxt_studio
parenta0c99e34312e83c59066a69147a902958966ba05 (diff)
[Keymap] Add Via keymap for CXT Studio (#21675)
Diffstat (limited to 'keyboards/cxt_studio')
-rw-r--r--keyboards/cxt_studio/info.json4
-rw-r--r--keyboards/cxt_studio/keymaps/via/keymap.c38
-rw-r--r--keyboards/cxt_studio/keymaps/via/rules.mk3
3 files changed, 43 insertions, 2 deletions
diff --git a/keyboards/cxt_studio/info.json b/keyboards/cxt_studio/info.json
index 0367948430..07b5ff17ea 100644
--- a/keyboards/cxt_studio/info.json
+++ b/keyboards/cxt_studio/info.json
@@ -50,8 +50,8 @@
50 "url": "", 50 "url": "",
51 "usb": { 51 "usb": {
52 "device_version": "1.0.0", 52 "device_version": "1.0.0",
53 "pid": "0x0000", 53 "pid": "0xC401",
54 "vid": "0xFEED" 54 "vid": "0x5754"
55 }, 55 },
56 "layouts": { 56 "layouts": {
57 "LAYOUT": { 57 "LAYOUT": {
diff --git a/keyboards/cxt_studio/keymaps/via/keymap.c b/keyboards/cxt_studio/keymaps/via/keymap.c
new file mode 100644
index 0000000000..1d58a60471
--- /dev/null
+++ b/keyboards/cxt_studio/keymaps/via/keymap.c
@@ -0,0 +1,38 @@
1/* Copyright 2023 Brian McKenna
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include QMK_KEYBOARD_H
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] = LAYOUT(
21 KC_ESC, KC_F11, KC_NO, KC_MSTP,
22 KC_NO, KC_NO, KC_MRWD, KC_MFFD,
23 KC_NO, KC_MPLY, KC_MPLY, KC_MNXT,
24
25 KC_MUTE, KC_NO, KC_NO, RGB_TOG
26 )
27};
28
29#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
30const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
31 [0] = {
32 ENCODER_CCW_CW(KC_VOLD, KC_VOLU),
33 ENCODER_CCW_CW(RGB_HUD, RGB_HUI),
34 ENCODER_CCW_CW(RGB_VAD, RGB_VAI),
35 ENCODER_CCW_CW(RGB_MODE_REVERSE, RGB_MODE_FORWARD)
36 },
37};
38#endif // defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
diff --git a/keyboards/cxt_studio/keymaps/via/rules.mk b/keyboards/cxt_studio/keymaps/via/rules.mk
new file mode 100644
index 0000000000..70cf4224c0
--- /dev/null
+++ b/keyboards/cxt_studio/keymaps/via/rules.mk
@@ -0,0 +1,3 @@
1VIA_ENABLE = yes
2ENCODER_MAP_ENABLE = yes
3LTO_ENABLE = yes