summaryrefslogtreecommitdiff
path: root/keyboards/qpockets
diff options
context:
space:
mode:
authorpeepeetee <43021794+peepeetee@users.noreply.github.com>2022-02-06 13:16:47 +0800
committerGitHub <noreply@github.com>2022-02-05 21:16:47 -0800
commitde1417b66075464e3f4152988e4b11544d6ac0eb (patch)
tree274f53c6a8de3845288dd1ca2132f14408278cb7 /keyboards/qpockets
parent38e085df87820941bcfcdce3b3bc16e46855f557 (diff)
move @qpocket 's keyboards to qpocket/ (#15827)
Diffstat (limited to 'keyboards/qpockets')
-rw-r--r--keyboards/qpockets/eggman/config.h48
-rw-r--r--keyboards/qpockets/eggman/eggman.c16
-rw-r--r--keyboards/qpockets/eggman/eggman.h39
-rw-r--r--keyboards/qpockets/eggman/info.json49
-rw-r--r--keyboards/qpockets/eggman/keymaps/default/config.h27
-rw-r--r--keyboards/qpockets/eggman/keymaps/default/keymap.c94
-rw-r--r--keyboards/qpockets/eggman/keymaps/default/rules.mk1
-rw-r--r--keyboards/qpockets/eggman/readme.md18
-rw-r--r--keyboards/qpockets/eggman/rules.mk20
-rw-r--r--keyboards/qpockets/space_space/readme.md18
-rw-r--r--keyboards/qpockets/space_space/rev1/config.h54
-rw-r--r--keyboards/qpockets/space_space/rev1/info.json90
-rw-r--r--keyboards/qpockets/space_space/rev1/keymaps/big_space/config.h27
-rw-r--r--keyboards/qpockets/space_space/rev1/keymaps/big_space/keymap.c130
-rw-r--r--keyboards/qpockets/space_space/rev1/keymaps/big_space/rules.mk1
-rw-r--r--keyboards/qpockets/space_space/rev1/keymaps/default/config.h27
-rw-r--r--keyboards/qpockets/space_space/rev1/keymaps/default/keymap.c132
-rw-r--r--keyboards/qpockets/space_space/rev1/keymaps/default/rules.mk1
-rw-r--r--keyboards/qpockets/space_space/rev1/keymaps/readme.md76
-rw-r--r--keyboards/qpockets/space_space/rev1/readme.md18
-rw-r--r--keyboards/qpockets/space_space/rev1/rev1.c17
-rw-r--r--keyboards/qpockets/space_space/rev1/rev1.h45
-rw-r--r--keyboards/qpockets/space_space/rev1/rules.mk19
-rw-r--r--keyboards/qpockets/space_space/rev2/config.h58
-rw-r--r--keyboards/qpockets/space_space/rev2/info.json90
-rw-r--r--keyboards/qpockets/space_space/rev2/keymaps/big_space/config.h27
-rw-r--r--keyboards/qpockets/space_space/rev2/keymaps/big_space/keymap.c81
-rw-r--r--keyboards/qpockets/space_space/rev2/keymaps/big_space/rules.mk1
-rw-r--r--keyboards/qpockets/space_space/rev2/keymaps/default/config.h27
-rw-r--r--keyboards/qpockets/space_space/rev2/keymaps/default/keymap.c77
-rw-r--r--keyboards/qpockets/space_space/rev2/keymaps/default/rules.mk1
-rw-r--r--keyboards/qpockets/space_space/rev2/keymaps/qpockets/config.h27
-rw-r--r--keyboards/qpockets/space_space/rev2/keymaps/qpockets/keymap.c75
-rw-r--r--keyboards/qpockets/space_space/rev2/keymaps/qpockets/rules.mk1
-rw-r--r--keyboards/qpockets/space_space/rev2/readme.md18
-rw-r--r--keyboards/qpockets/space_space/rev2/rev2.c35
-rw-r--r--keyboards/qpockets/space_space/rev2/rev2.h49
-rw-r--r--keyboards/qpockets/space_space/rev2/rules.mk19
-rw-r--r--keyboards/qpockets/space_space/rules.mk1
-rw-r--r--keyboards/qpockets/wanten/config.h161
-rw-r--r--keyboards/qpockets/wanten/info.json152
-rw-r--r--keyboards/qpockets/wanten/keymaps/2u_bars/config.h27
-rw-r--r--keyboards/qpockets/wanten/keymaps/2u_bars/keymap.c104
-rw-r--r--keyboards/qpockets/wanten/keymaps/2u_bars/rules.mk1
-rw-r--r--keyboards/qpockets/wanten/keymaps/625_bar/config.h27
-rw-r--r--keyboards/qpockets/wanten/keymaps/625_bar/keymap.c104
-rw-r--r--keyboards/qpockets/wanten/keymaps/625_bar/rules.mk1
-rw-r--r--keyboards/qpockets/wanten/keymaps/default/config.h27
-rw-r--r--keyboards/qpockets/wanten/keymaps/default/keymap.c104
-rw-r--r--keyboards/qpockets/wanten/keymaps/default/readme.md1
-rw-r--r--keyboards/qpockets/wanten/keymaps/default/rules.mk1
-rw-r--r--keyboards/qpockets/wanten/readme.md27
-rw-r--r--keyboards/qpockets/wanten/rules.mk19
-rw-r--r--keyboards/qpockets/wanten/wanten.c17
-rw-r--r--keyboards/qpockets/wanten/wanten.h65
55 files changed, 2392 insertions, 0 deletions
diff --git a/keyboards/qpockets/eggman/config.h b/keyboards/qpockets/eggman/config.h
new file mode 100644
index 0000000000..e1515e6c3d
--- /dev/null
+++ b/keyboards/qpockets/eggman/config.h
@@ -0,0 +1,48 @@
1/* Copyright 2021 Alan Lehners
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#pragma once
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0x7170
23#define PRODUCT_ID 0x656D
24#define DEVICE_VER 0x1000
25#define MANUFACTURER qpockets
26#define PRODUCT eggman
27
28/* key matrix size */
29#define MATRIX_ROWS 7
30#define MATRIX_COLS 7
31
32#define MATRIX_ROW_PINS { C4, C5, C2, D0, B5, B6, D6 }
33#define MATRIX_COL_PINS { B7, B4, B3, B2, D3, D2, D1 }
34
35#define UNUSED_PINS
36
37/* COL2ROW, ROW2COL*/
38#define DIODE_DIRECTION COL2ROW
39
40/* ROTARY ENCODERS */
41#define ENCODERS_PAD_A { C6, D4 }
42#define ENCODERS_PAD_B { C7, D5 }
43
44#define ENCODER_RESOLUTION 4
45//#define ENCODER_DIRECTION_FLIP
46
47#define DEBOUNCE 5
48
diff --git a/keyboards/qpockets/eggman/eggman.c b/keyboards/qpockets/eggman/eggman.c
new file mode 100644
index 0000000000..2287b9e278
--- /dev/null
+++ b/keyboards/qpockets/eggman/eggman.c
@@ -0,0 +1,16 @@
1/* Copyright 2021 Alan Lehners
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#include "eggman.h"
diff --git a/keyboards/qpockets/eggman/eggman.h b/keyboards/qpockets/eggman/eggman.h
new file mode 100644
index 0000000000..4d4c4a1241
--- /dev/null
+++ b/keyboards/qpockets/eggman/eggman.h
@@ -0,0 +1,39 @@
1/* Copyright 2021 Alan Lehners
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#pragma once
18
19#include "quantum.h"
20
21#define XXX KC_NO
22
23#define LAYOUT_default( \
24 K02, K04, \
25 K10, K00, K11, K01, K12, K13, K14, K05, K15, K06, K16, \
26 K30, K20, K31, K21, K32, K33, K34, K25, K35, K26, K36, \
27 K50, K40, K51, K41, K52, K53, K54, K45, K55, K46, K56, \
28 K61, K62, K64, K65 \
29) \
30{ \
31{ K00, K01, K02, XXX, K04, K05, K06 }, \
32{ K10, K11, K12, K13, K14, K15, K16 }, \
33{ K20, K21, XXX, XXX, XXX, K25, K26 }, \
34{ K30, K31, K32, K33, K34, K35, K36 }, \
35{ K40, K41, XXX, XXX, XXX, K45, K46 }, \
36{ K50, K51, K52, K53, K54, K55, K56 }, \
37{ XXX, K61, K62, XXX, K64, K65, XXX }, \
38}
39
diff --git a/keyboards/qpockets/eggman/info.json b/keyboards/qpockets/eggman/info.json
new file mode 100644
index 0000000000..17e1cb2166
--- /dev/null
+++ b/keyboards/qpockets/eggman/info.json
@@ -0,0 +1,49 @@
1{
2 "keyboard_name": "eggman",
3 "url": "",
4 "maintainer": "qpockets",
5 "layouts": {
6 "LAYOUT_default": {
7 "layout": [
8 {"label":"RE", "x":4.25, "y":0},
9 {"label":"RE", "x":6.25, "y":0},
10 {"label":"Q", "x":0, "y":0.75},
11 {"label":"W", "x":1, "y":0.5},
12 {"label":"E", "x":2, "y":0.25},
13 {"label":"R", "x":3, "y":0.75},
14 {"label":"T", "x":4, "y":1},
15 {"label":"Delete", "x":5, "y":1, "w":1.5},
16 {"label":"Y", "x":6.5, "y":1},
17 {"label":"U", "x":7.5, "y":0.75},
18 {"label":"I", "x":8.5, "y":0.25},
19 {"label":"O", "x":9.5, "y":0.5},
20 {"label":"P", "x":10.5, "y":0.75},
21 {"label":"A", "x":0, "y":1.75},
22 {"label":"S", "x":1, "y":1.5},
23 {"label":"D", "x":2, "y":1.25},
24 {"label":"F", "x":3, "y":1.75},
25 {"label":"G", "x":4, "y":2},
26 {"label":"Tab", "x":5, "y":2, "w":1.5},
27 {"label":"H", "x":6.5, "y":2},
28 {"label":"J", "x":7.5, "y":1.75},
29 {"label":"K", "x":8.5, "y":1.25},
30 {"label":"L", "x":9.5, "y":1.5},
31 {"label":"\"", "x":10.5, "y":1.75},
32 {"label":"Z", "x":0, "y":2.75},
33 {"label":"X", "x":1, "y":2.5},
34 {"label":"C", "x":2, "y":2.25},
35 {"label":"V", "x":3, "y":2.75},
36 {"label":"B", "x":4, "y":3},
37 {"label":"Shift", "x":5, "y":3, "w":1.5},
38 {"label":"N", "x":6.5, "y":3},
39 {"label":"M", "x":7.5, "y":2.75},
40 {"label":"<", "x":8.5, "y":2.25},
41 {"label":">", "x":9.5, "y":2.5},
42 {"label":"?", "x":10.5, "y":2.75},
43 {"label":"Ctrl", "x":2.5, "y":4, "w":1.25},
44 {"label":"Backspace", "x":3.75, "y":4, "w":2},
45 {"label":"Space", "x":5.75, "y":4, "w":2},
46 {"label":"Alt", "x":7.75, "y":4, "w":1.25}]
47 }
48 }
49}
diff --git a/keyboards/qpockets/eggman/keymaps/default/config.h b/keyboards/qpockets/eggman/keymaps/default/config.h
new file mode 100644
index 0000000000..dd1d9753fd
--- /dev/null
+++ b/keyboards/qpockets/eggman/keymaps/default/config.h
@@ -0,0 +1,27 @@
1/* Copyright 2021 Alan Lehners
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#pragma once
18
19/*Modtaps*/
20#define TAPPING_TERM 175
21#define IGNORE_MOD_TAP_INTERRUPT
22
23/*Combos*/
24#ifdef COMBO_ENABLE
25# define COMBO_COUNT 5
26# define COMBO_TERM 50
27#endif
diff --git a/keyboards/qpockets/eggman/keymaps/default/keymap.c b/keyboards/qpockets/eggman/keymaps/default/keymap.c
new file mode 100644
index 0000000000..11da71c6c7
--- /dev/null
+++ b/keyboards/qpockets/eggman/keymaps/default/keymap.c
@@ -0,0 +1,94 @@
1/* Copyright 2021 Alan Lehners
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
19enum layers{
20 _BASE,
21 _SYM,
22 _NAV
23};
24
25enum combo_events {
26 COMBO_BSPC,
27 COMBO_ENT,
28 COMBO_TAB,
29 COMBO_ESC,
30 COMBO_DEL
31};
32#define KC_DN_BSPC LT(_NAV, KC_BSPC)
33#define KC_UP_SPC LT(_SYM, KC_SPC)
34#define KC_SF LSFT_T(KC_F)
35#define KC_SJ RSFT_T(KC_J)
36
37const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
38 [_BASE] = LAYOUT_default(
39 KC_LGUI, KC_MPLY,
40 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_Y, KC_U, KC_I, KC_O, KC_P,
41 KC_A, KC_S, KC_D, KC_SF, KC_G, KC_TAB, KC_H, KC_SJ, KC_K, KC_L, KC_QUOT,
42 KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LSFT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
43 KC_LCTL, KC_DN_BSPC, KC_UP_SPC, KC_RALT
44 ),
45
46 [_SYM] = LAYOUT_default(
47 KC_TRNS, KC_TRNS,
48 KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0,
49 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
50 KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_TRNS, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
51 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
52 ),
53
54 [_NAV] = LAYOUT_default(
55 KC_TRNS, KC_TRNS,
56 KC_TRNS, KC_HOME, KC_UP, KC_END, KC_PGUP, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC,
57 KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TAB,
58 KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_LCAP, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_ENT,
59 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
60 ),
61};
62
63bool encoder_update_user(uint8_t index, bool clockwise) {
64 if (index == 0) { /* left encoder */
65 if (clockwise) {
66 tap_code(KC_WH_U);
67 } else {
68 tap_code(KC_WH_D);
69 }
70 } else if (index == 1) { /* right encoder */
71 if (clockwise) {
72 tap_code(KC_VOLU);
73 } else {
74 tap_code(KC_VOLD);
75 }
76 }
77 return true;
78}
79
80#ifdef COMBO_ENABLE
81const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
82const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END};
83const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END};
84const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END};
85const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END};
86
87combo_t key_combos[COMBO_COUNT] = {
88 [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC),
89 [COMBO_ENT] = COMBO(combo_ent,KC_ENT),
90 [COMBO_TAB] = COMBO(combo_tab,KC_TAB),
91 [COMBO_ESC] = COMBO(combo_esc,KC_ESC),
92 [COMBO_DEL] = COMBO(combo_del,KC_DEL)
93};
94#endif
diff --git a/keyboards/qpockets/eggman/keymaps/default/rules.mk b/keyboards/qpockets/eggman/keymaps/default/rules.mk
new file mode 100644
index 0000000000..ab1e438182
--- /dev/null
+++ b/keyboards/qpockets/eggman/keymaps/default/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes
diff --git a/keyboards/qpockets/eggman/readme.md b/keyboards/qpockets/eggman/readme.md
new file mode 100644
index 0000000000..e0066fbe1f
--- /dev/null
+++ b/keyboards/qpockets/eggman/readme.md
@@ -0,0 +1,18 @@
1# eggman
2
3![eggman](https://i.imgur.com/x4kaGmll.jpg)
4
5i am he and you are me
6
7* Keyboard Maintainer: https://github.com/qpockets
8* Hardware Availability:
9
10Make example for this keyboard (after setting up your build environment):
11
12 make qpockets/eggman:default
13
14Flashing example for this keyboard:
15
16 make qpockets/eggman:default:flash
17
18See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/qpockets/eggman/rules.mk b/keyboards/qpockets/eggman/rules.mk
new file mode 100644
index 0000000000..7cb0dc381f
--- /dev/null
+++ b/keyboards/qpockets/eggman/rules.mk
@@ -0,0 +1,20 @@
1# MCU name
2MCU = atmega32u2
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19ENCODER_ENABLE = yes
20
diff --git a/keyboards/qpockets/space_space/readme.md b/keyboards/qpockets/space_space/readme.md
new file mode 100644
index 0000000000..c84a583267
--- /dev/null
+++ b/keyboards/qpockets/space_space/readme.md
@@ -0,0 +1,18 @@
1# space_space
2
3![space_space](https://i.imgur.com/SxjhzIMl.jpg)
4
5Give your space some space
6
7* Keyboard Maintainer: https://github.com/qpockets
8* Hardware Availability: [p3dstore](https://p3dstore.com/products/space-space-acrylic-case?_pos=21&_sid=c75de6a78&_ss=r&variant=39907740844216)
9
10Make example for this keyboard (after setting up your build environment):
11
12 make qpockets/space_space/rev2:default
13
14Flashing example for this keyboard:
15
16 make qpockets/space_space/rev2:default:flash
17
18See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/qpockets/space_space/rev1/config.h b/keyboards/qpockets/space_space/rev1/config.h
new file mode 100644
index 0000000000..d52aad4c2b
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev1/config.h
@@ -0,0 +1,54 @@
1/* Copyright 2020 qpockets
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#pragma once
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0x7170
23#define PRODUCT_ID 0x7373
24#define DEVICE_VER 0x3000
25#define MANUFACTURER qpockets
26#define PRODUCT space_space
27
28/* key matrix size */
29#define MATRIX_ROWS 4
30#define MATRIX_COLS 11
31
32#define MATRIX_ROW_PINS \
33 { F1, F4, F5, C7 }
34#define MATRIX_COL_PINS \
35 { D4, B4, B5, B6, C6, F7, F6, F0, B0, E6, B1 }
36
37#define UNUSED_PINS
38
39/* COL2ROW, ROW2COL*/
40#define DIODE_DIRECTION COL2ROW
41
42/* ROTARY ENCODERS */
43#define ENCODERS_PAD_A \
44 { B3, D6 }
45#define ENCODERS_PAD_B \
46 { B2, D7 }
47
48#define ENCODER_RESOLUTIONS \
49 { 3, 4 }
50//#define ENCODER_DIRECTION_FLIP
51
52#define DEBOUNCE 7
53
54#define LOCKING_SUPPORT_ENABLE
diff --git a/keyboards/qpockets/space_space/rev1/info.json b/keyboards/qpockets/space_space/rev1/info.json
new file mode 100644
index 0000000000..5bac73c642
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev1/info.json
@@ -0,0 +1,90 @@
1{
2 "keyboard_name": "space_space",
3 "url": "",
4 "maintainer": "qpockets",
5 "layouts": {
6 "LAYOUT_default": {
7 "layout": [
8 {"label":"Q", "x":0, "y":0},
9 {"label":"W", "x":1, "y":0},
10 {"label":"E", "x":2, "y":0},
11 {"label":"R", "x":3, "y":0},
12 {"label":"T", "x":4, "y":0},
13 {"label":"Delete", "x":5, "y":0, "w":1.5},
14 {"label":"Y", "x":6.5, "y":0},
15 {"label":"U", "x":7.5, "y":0},
16 {"label":"I", "x":8.5, "y":0},
17 {"label":"O", "x":9.5, "y":0},
18 {"label":"P", "x":10.5, "y":0},
19 {"label":"A", "x":0, "y":1},
20 {"label":"S", "x":1, "y":1},
21 {"label":"D", "x":2, "y":1},
22 {"label":"F", "x":3, "y":1},
23 {"label":"G", "x":4, "y":1},
24 {"label":"Tab", "x":5, "y":1, "w":1.5},
25 {"label":"H", "x":6.5, "y":1},
26 {"label":"J", "x":7.5, "y":1},
27 {"label":"K", "x":8.5, "y":1},
28 {"label":"L", "x":9.5, "y":1},
29 {"label":"\"", "x":10.5, "y":1},
30 {"label":"Z", "x":0, "y":2},
31 {"label":"X", "x":1, "y":2},
32 {"label":"C", "x":2, "y":2},
33 {"label":"V", "x":3, "y":2},
34 {"label":"B", "x":4, "y":2},
35 {"label":"Shift", "x":5, "y":2, "w":1.5},
36 {"label":"N", "x":6.5, "y":2},
37 {"label":"M", "x":7.5, "y":2},
38 {"label":"<", "x":8.5, "y":2},
39 {"label":">", "x":9.5, "y":2},
40 {"label":"?", "x":10.5, "y":2},
41 {"label":"Ctrl", "x":1.25, "y":3.35, "w":1.25},
42 {"label":"Fn", "x":2.5, "y":3.35},
43 {"label":"Backspace", "x":3.5, "y":3.35, "w":2},
44 {"label":"Space", "x":5.5, "y":3.35, "w":2.25},
45 {"label":"Gui", "x":7.75, "y":3.35},
46 {"label":"Alt", "x":8.75, "y":3.35, "w":1.25}
47 ]
48 },
49 "LAYOUT_big_space": {
50 "layout": [
51 {"label":"Q", "x":0, "y":0},
52 {"label":"W", "x":1, "y":0},
53 {"label":"E", "x":2, "y":0},
54 {"label":"R", "x":3, "y":0},
55 {"label":"T", "x":4, "y":0},
56 {"label":"Delete", "x":5, "y":0, "w":1.5},
57 {"label":"Y", "x":6.5, "y":0},
58 {"label":"U", "x":7.5, "y":0},
59 {"label":"I", "x":8.5, "y":0},
60 {"label":"O", "x":9.5, "y":0},
61 {"label":"P", "x":10.5, "y":0},
62 {"label":"A", "x":0, "y":1},
63 {"label":"S", "x":1, "y":1},
64 {"label":"D", "x":2, "y":1},
65 {"label":"F", "x":3, "y":1},
66 {"label":"G", "x":4, "y":1},
67 {"label":"Tab", "x":5, "y":1, "w":1.5},
68 {"label":"H", "x":6.5, "y":1},
69 {"label":"J", "x":7.5, "y":1},
70 {"label":"K", "x":8.5, "y":1},
71 {"label":"L", "x":9.5, "y":1},
72 {"label":"\"", "x":10.5, "y":1},
73 {"label":"Z", "x":0, "y":2},
74 {"label":"X", "x":1, "y":2},
75 {"label":"C", "x":2, "y":2},
76 {"label":"V", "x":3, "y":2},
77 {"label":"B", "x":4, "y":2},
78 {"label":"Shift", "x":5, "y":2, "w":1.5},
79 {"label":"N", "x":6.5, "y":2},
80 {"label":"M", "x":7.5, "y":2},
81 {"label":"<", "x":8.5, "y":2},
82 {"label":">", "x":9.5, "y":2},
83 {"label":"?", "x":10.5, "y":2},
84 {"label":"Ctrl", "x":1.25, "y":3.35, "w":1.25},
85 {"label":"Space", "x":2.5, "y":3.35, "w":6.25},
86 {"label":"Alt", "x":8.75, "y":3.35, "w":1.25}
87 ]
88 }
89 }
90}
diff --git a/keyboards/qpockets/space_space/rev1/keymaps/big_space/config.h b/keyboards/qpockets/space_space/rev1/keymaps/big_space/config.h
new file mode 100644
index 0000000000..ffc2124e1b
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev1/keymaps/big_space/config.h
@@ -0,0 +1,27 @@
1/* Copyright 2021 qpockets
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#pragma once
18
19/*Modtaps*/
20#define TAPPING_TERM 175
21#define IGNORE_MOD_TAP_INTERRUPT
22
23/*Combos*/
24#ifdef COMBO_ENABLE
25# define COMBO_COUNT 5
26# define COMBO_TERM 50
27#endif \ No newline at end of file
diff --git a/keyboards/qpockets/space_space/rev1/keymaps/big_space/keymap.c b/keyboards/qpockets/space_space/rev1/keymaps/big_space/keymap.c
new file mode 100644
index 0000000000..62241532e8
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev1/keymaps/big_space/keymap.c
@@ -0,0 +1,130 @@
1/* Copyright 2020 qpockets
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#include QMK_KEYBOARD_H
17
18enum layers{
19 _BASE,
20 _SYM,
21 _NUM,
22 _NAV
23};
24
25enum combo_events {
26 COMBO_BSPC,
27 COMBO_ENT,
28 COMBO_TAB,
29 COMBO_ESC,
30 COMBO_DEL
31};
32#define KC_UP_SPC LT(_SYM, KC_SPC)
33#define KC_GZ LGUI_T(KC_Z)
34#define KC_AA LALT_T(KC_A)
35#define KC_CC LCTL_T(KC_C)
36#define KC_SF LSFT_T(KC_F)
37#define KC_SJ RSFT_T(KC_J)
38#define KC_CCOMM RCTL_T(KC_COMM)
39#define KC_AQUOT RALT_T(KC_QUOT)
40#define KC_GSLSH RGUI_T(KC_SLSH)
41
42const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
43 [_BASE] = LAYOUT_big_space(
44 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_Y, KC_U, KC_I, KC_O, KC_P,
45 KC_AA, KC_S, KC_D, KC_SF, KC_G, KC_BSPC, KC_H, KC_SJ, KC_K, KC_L, KC_AQUOT,
46 KC_GZ, KC_X, KC_CC, KC_V, KC_B, KC_LSFT, KC_N, KC_M, KC_CCOMM, KC_DOT, KC_GSLSH,
47 MO(_NAV), KC_UP_SPC, KC_RALT
48 ),
49
50 [_SYM] = LAYOUT_big_space(
51 KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0,
52 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
53 KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_TRNS, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
54 KC_TRNS, KC_TRNS, KC_TRNS
55 ),
56
57 [_NAV] = LAYOUT_big_space(
58 KC_HOME, KC_UP, KC_END, KC_PGUP, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC,
59 KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TAB,
60 KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_ENT,
61 KC_TRNS, KC_TRNS, KC_TRNS
62 ),
63};
64
65bool encoder_update_user(uint8_t index, bool clockwise) {
66 if (index == 1) { /* left encoder*/
67 switch(get_highest_layer(layer_state)){
68
69 case _NAV:
70 if (clockwise) {
71 tap_code16(C(KC_TAB));
72 } else {
73 tap_code16(C(S(KC_TAB)));
74 }
75 break;
76
77 case _SYM:
78 if (clockwise) {
79 tap_code(KC_PGUP);
80 } else {
81 tap_code(KC_PGDN);
82
83 }
84 break;
85
86 default:
87 if (clockwise){
88 tap_code(KC_WH_U);
89 } else{
90 tap_code(KC_WH_D);
91 }
92 break;
93 }
94 } else if (index == 0) { /* right encoder */
95 switch(get_highest_layer(layer_state)){
96 case _SYM:
97 if (clockwise) {
98 tap_code(KC_MPRV);
99 } else {
100 tap_code(KC_MNXT);
101 }
102 break;
103
104 default:
105 if (clockwise){
106 tap_code(KC_VOLU);
107 } else{
108 tap_code(KC_VOLD);
109 }
110 break;
111 }
112 }
113 return true;
114}
115
116#ifdef COMBO_ENABLE
117const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
118const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END};
119const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END};
120const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END};
121const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END};
122
123combo_t key_combos[COMBO_COUNT] = {
124 [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC),
125 [COMBO_ENT] = COMBO(combo_ent,KC_ENT),
126 [COMBO_TAB] = COMBO(combo_tab,KC_TAB),
127 [COMBO_ESC] = COMBO(combo_esc,KC_ESC),
128 [COMBO_DEL] = COMBO(combo_del,KC_DEL)
129};
130#endif
diff --git a/keyboards/qpockets/space_space/rev1/keymaps/big_space/rules.mk b/keyboards/qpockets/space_space/rev1/keymaps/big_space/rules.mk
new file mode 100644
index 0000000000..ff681299e4
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev1/keymaps/big_space/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/qpockets/space_space/rev1/keymaps/default/config.h b/keyboards/qpockets/space_space/rev1/keymaps/default/config.h
new file mode 100644
index 0000000000..ffc2124e1b
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev1/keymaps/default/config.h
@@ -0,0 +1,27 @@
1/* Copyright 2021 qpockets
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#pragma once
18
19/*Modtaps*/
20#define TAPPING_TERM 175
21#define IGNORE_MOD_TAP_INTERRUPT
22
23/*Combos*/
24#ifdef COMBO_ENABLE
25# define COMBO_COUNT 5
26# define COMBO_TERM 50
27#endif \ No newline at end of file
diff --git a/keyboards/qpockets/space_space/rev1/keymaps/default/keymap.c b/keyboards/qpockets/space_space/rev1/keymaps/default/keymap.c
new file mode 100644
index 0000000000..6b4219b289
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev1/keymaps/default/keymap.c
@@ -0,0 +1,132 @@
1/* Copyright 2020 qpockets
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#include QMK_KEYBOARD_H
17
18enum layers{
19 _BASE,
20 _SYM,
21 _NUM,
22 _NAV
23};
24
25enum combo_events {
26 COMBO_BSPC,
27 COMBO_ENT,
28 COMBO_TAB,
29 COMBO_ESC,
30 COMBO_DEL
31};
32#define KC_DN_BSPC LT(_NUM, KC_BSPC)
33#define KC_UP_SPC LT(_SYM, KC_SPC)
34#define KC_SF LSFT_T(KC_F)
35#define KC_SJ RSFT_T(KC_J)
36
37const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
38 [_BASE] = LAYOUT_default(
39 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_Y, KC_U, KC_I, KC_O, KC_P,
40 KC_A, KC_S, KC_D, KC_SF, KC_G, KC_TAB, KC_H, KC_SJ, KC_K, KC_L, KC_QUOT,
41 KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LSFT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
42 KC_LCTL, MO(_NAV), KC_DN_BSPC, KC_UP_SPC, KC_LGUI, KC_RALT
43 ),
44
45 [_SYM] = LAYOUT_default(
46 KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0,
47 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
48 KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_TRNS, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
49 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
50 ),
51
52 [_NUM] = LAYOUT_default(
53 KC_PSLS, KC_P7, KC_P8, KC_P9, KC_PMNS, KC_EQL, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC,
54 KC_PLUS, KC_P4, KC_P5, KC_P6, KC_BSPC, KC_LSFT, KC_TRNS, KC_TRNS, KC_SCLN, KC_COLN, KC_TAB,
55 KC_PAST, KC_P1, KC_P2, KC_P3, KC_ENT, KC_TAB, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_ENT,
56 KC_P0, KC_PDOT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
57 ),
58
59 [_NAV] = LAYOUT_default(
60 KC_HOME, KC_UP, KC_END, KC_PGUP, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC,
61 KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TAB,
62 KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_LCAP, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_ENT,
63 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
64 ),
65};
66
67bool encoder_update_user(uint8_t index, bool clockwise) {
68 if (index == 1) { /* left encoder*/
69 switch(get_highest_layer(layer_state)){
70
71 case _NAV:
72 if (clockwise) {
73 tap_code16(C(KC_TAB));
74 } else {
75 tap_code16(C(S(KC_TAB)));
76 }
77 break;
78
79 case _NUM:
80 if (clockwise) {
81 tap_code(KC_PGUP);
82 } else {
83 tap_code(KC_PGDN);
84
85 }
86 break;
87
88 default:
89 if (clockwise){
90 tap_code(KC_WH_U);
91 } else{
92 tap_code(KC_WH_D);
93 }
94 break;
95 }
96 } else if (index == 0) { /* right encoder */
97 switch(get_highest_layer(layer_state)){
98 case _SYM:
99 if (clockwise) {
100 tap_code(KC_MPRV);
101 } else {
102 tap_code(KC_MNXT);
103 }
104 break;
105
106 default:
107 if (clockwise){
108 tap_code(KC_VOLU);
109 } else{
110 tap_code(KC_VOLD);
111 }
112 break;
113 }
114 }
115 return true;
116}
117
118#ifdef COMBO_ENABLE
119const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
120const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END};
121const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END};
122const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END};
123const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END};
124
125combo_t key_combos[COMBO_COUNT] = {
126 [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC),
127 [COMBO_ENT] = COMBO(combo_ent,KC_ENT),
128 [COMBO_TAB] = COMBO(combo_tab,KC_TAB),
129 [COMBO_ESC] = COMBO(combo_esc,KC_ESC),
130 [COMBO_DEL] = COMBO(combo_del,KC_DEL)
131};
132#endif
diff --git a/keyboards/qpockets/space_space/rev1/keymaps/default/rules.mk b/keyboards/qpockets/space_space/rev1/keymaps/default/rules.mk
new file mode 100644
index 0000000000..ff681299e4
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev1/keymaps/default/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/qpockets/space_space/rev1/keymaps/readme.md b/keyboards/qpockets/space_space/rev1/keymaps/readme.md
new file mode 100644
index 0000000000..79e944c711
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev1/keymaps/readme.md
@@ -0,0 +1,76 @@
1space space default layout
2
3Default layout on space space uses 3 layers + base, 5 combos, layer taps on the split space bars, and tap-hold for shift on F & J.
4
5* combos include:
6
7O+P = backspace
8
9K+L = enter
10
11S+D = tab
12
13T+Y = escape
14
15Q+W = delete
16
17
18* The encoders are also set to function differently depending on layer:
19
20right encoder
21default = volume up/down
22
23symbol layer (hold space) = media next/previous
24
25left encoder
26default = mousewheel up/down
27
28number layer (hold backspace) = page up/down
29
30nav layer (hold Fn) = control tab/control shift tab
31
32Default Layout:
33
34```
35Base
36
37 ,-------------------------------------------------------------------.
38 | Q | W | E | R | T | Del | Y | U | I | O | P |
39 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
40 | A | S | D | F | G | Tab | H | J | K | L | " |
41 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
42 | Z | X | C | V | B | Shift | N | M | , | . | / |
43 `-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----'
44 | Ctrl | FN | Back | Space | Gui | Alt |
45 `-------------------------------------------------'
46Symbols
47 ,-------------------------------------------------------------------.
48 | 1 | 2 | 3 | 4 | 5 | Del | 6 | 7 | 8 | 9 | 0 |
49 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
50 | ! | @ | # | $ | % | Tab | ^ | & | * | = | - |
51 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
52 | | | \ | ( | [ | ; | Shift | : | ] | ) | + | _ |
53 `-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----'
54 | Ctrl | FN | Back | Space | Gui | Alt |
55 `-------------------------------------------------'
56Numpad
57 ,-------------------------------------------------------------------.
58 | / | 7 | 8 | 9 | - | = | Y | U | I | O | Bsp |
59 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
60 | + | 4 | 5 | 6 | Bsp | Shift | H | J | K | L | Tab |
61 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
62 | * | 1 | 2 | 3 | Ent | Tab | N | M | , | . | Ent |
63 `-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----'
64 | 0 | . | Back | Space | Gui | Alt |
65 `-------------------------------------------------'
66Nav
67 ,-------------------------------------------------------------------.
68 | Hm | Up | End | PgU | T | Del | Y | U | I | O | Bsp |
69 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
70 | Lft | Dn | Rgt | PgD | G | Tab | H | J | K | L | Tab |
71 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
72 | Prv | Pse | Nxt | V | B | Caps | N | M | , | . | Ent |
73 `-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----'
74 | Ctrl | FN | Back | Space | Gui | Alt |
75 `-------------------------------------------------'
76
diff --git a/keyboards/qpockets/space_space/rev1/readme.md b/keyboards/qpockets/space_space/rev1/readme.md
new file mode 100644
index 0000000000..4b170612e8
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev1/readme.md
@@ -0,0 +1,18 @@
1# space_space
2
3![space_space](https://i.imgur.com/qdkG8K7l.jpg)
4
5Give your space some space
6
7* Keyboard Maintainer: https://github.com/qpockets
8* Hardware Availability: limited
9
10Make example for this keyboard (after setting up your build environment):
11
12 make space_space/rev1:default
13
14Flashing example for this keyboard:
15
16 make space_space/rev1:default:flash
17
18See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/qpockets/space_space/rev1/rev1.c b/keyboards/qpockets/space_space/rev1/rev1.c
new file mode 100644
index 0000000000..e639552cfb
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev1/rev1.c
@@ -0,0 +1,17 @@
1
2/* Copyright 2020 qpockets
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17#include "rev1.h"
diff --git a/keyboards/qpockets/space_space/rev1/rev1.h b/keyboards/qpockets/space_space/rev1/rev1.h
new file mode 100644
index 0000000000..e56068ec42
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev1/rev1.h
@@ -0,0 +1,45 @@
1/* Copyright 2020 qpockets
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#pragma once
18
19#include "quantum.h"
20
21#define XXX KC_NO
22
23#define LAYOUT_default( \
24 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K50, \
25 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K51, \
26 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K52, \
27 K32, K33, K34, K36, K37, K38 \
28) { \
29 {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K50}, \
30 {K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K51}, \
31 {K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K52}, \
32 {XXX, XXX, K32, K33, K34, XXX, K36, K37, K38, XXX, XXX} \
33}
34
35#define LAYOUT_big_space( \
36 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K50, \
37 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K51, \
38 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K52, \
39 K32, K35, K38 \
40) { \
41 {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K50}, \
42 {K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K51}, \
43 {K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K52}, \
44 {XXX, XXX, K32, XXX, XXX, K35, XXX, XXX, K38, XXX, XXX} \
45}
diff --git a/keyboards/qpockets/space_space/rev1/rules.mk b/keyboards/qpockets/space_space/rev1/rules.mk
new file mode 100644
index 0000000000..5f58c5684b
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev1/rules.mk
@@ -0,0 +1,19 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19ENCODER_ENABLE = yes
diff --git a/keyboards/qpockets/space_space/rev2/config.h b/keyboards/qpockets/space_space/rev2/config.h
new file mode 100644
index 0000000000..bb8f04da2b
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/config.h
@@ -0,0 +1,58 @@
1/* Copyright 2021 qpockets
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#pragma once
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0x7170
23#define PRODUCT_ID 0x7373
24#define DEVICE_VER 0x3002
25#define MANUFACTURER qpockets
26#define PRODUCT space_space
27
28/* key matrix size */
29#define MATRIX_ROWS 4
30#define MATRIX_COLS 11
31
32#define MATRIX_ROW_PINS \
33 { B1, B0, D5, B6 }
34#define MATRIX_COL_PINS \
35 { C6, F6, F1, F4, F5, E6, D6, B2, B5, D3, D2 }
36
37#define UNUSED_PINS
38
39/* COL2ROW, ROW2COL*/
40#define DIODE_DIRECTION COL2ROW
41
42/* ROTARY ENCODERS */
43#define ENCODERS_PAD_A \
44 { B4, C7 }
45#define ENCODERS_PAD_B \
46 { D7, F7 }
47
48#define ENCODER_RESOLUTION 3
49
50#define DEBOUNCE 5
51
52#define LOCKING_SUPPORT_ENABLE
53
54#define RGB_DI_PIN F0
55#define RGBLED_NUM 4
56
57#define DRIVER_LED_TOTAL RGBLED_NUM
58#define RGBLIGHT_DEFAULT_HUE 130
diff --git a/keyboards/qpockets/space_space/rev2/info.json b/keyboards/qpockets/space_space/rev2/info.json
new file mode 100644
index 0000000000..5bac73c642
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/info.json
@@ -0,0 +1,90 @@
1{
2 "keyboard_name": "space_space",
3 "url": "",
4 "maintainer": "qpockets",
5 "layouts": {
6 "LAYOUT_default": {
7 "layout": [
8 {"label":"Q", "x":0, "y":0},
9 {"label":"W", "x":1, "y":0},
10 {"label":"E", "x":2, "y":0},
11 {"label":"R", "x":3, "y":0},
12 {"label":"T", "x":4, "y":0},
13 {"label":"Delete", "x":5, "y":0, "w":1.5},
14 {"label":"Y", "x":6.5, "y":0},
15 {"label":"U", "x":7.5, "y":0},
16 {"label":"I", "x":8.5, "y":0},
17 {"label":"O", "x":9.5, "y":0},
18 {"label":"P", "x":10.5, "y":0},
19 {"label":"A", "x":0, "y":1},
20 {"label":"S", "x":1, "y":1},
21 {"label":"D", "x":2, "y":1},
22 {"label":"F", "x":3, "y":1},
23 {"label":"G", "x":4, "y":1},
24 {"label":"Tab", "x":5, "y":1, "w":1.5},
25 {"label":"H", "x":6.5, "y":1},
26 {"label":"J", "x":7.5, "y":1},
27 {"label":"K", "x":8.5, "y":1},
28 {"label":"L", "x":9.5, "y":1},
29 {"label":"\"", "x":10.5, "y":1},
30 {"label":"Z", "x":0, "y":2},
31 {"label":"X", "x":1, "y":2},
32 {"label":"C", "x":2, "y":2},
33 {"label":"V", "x":3, "y":2},
34 {"label":"B", "x":4, "y":2},
35 {"label":"Shift", "x":5, "y":2, "w":1.5},
36 {"label":"N", "x":6.5, "y":2},
37 {"label":"M", "x":7.5, "y":2},
38 {"label":"<", "x":8.5, "y":2},
39 {"label":">", "x":9.5, "y":2},
40 {"label":"?", "x":10.5, "y":2},
41 {"label":"Ctrl", "x":1.25, "y":3.35, "w":1.25},
42 {"label":"Fn", "x":2.5, "y":3.35},
43 {"label":"Backspace", "x":3.5, "y":3.35, "w":2},
44 {"label":"Space", "x":5.5, "y":3.35, "w":2.25},
45 {"label":"Gui", "x":7.75, "y":3.35},
46 {"label":"Alt", "x":8.75, "y":3.35, "w":1.25}
47 ]
48 },
49 "LAYOUT_big_space": {
50 "layout": [
51 {"label":"Q", "x":0, "y":0},
52 {"label":"W", "x":1, "y":0},
53 {"label":"E", "x":2, "y":0},
54 {"label":"R", "x":3, "y":0},
55 {"label":"T", "x":4, "y":0},
56 {"label":"Delete", "x":5, "y":0, "w":1.5},
57 {"label":"Y", "x":6.5, "y":0},
58 {"label":"U", "x":7.5, "y":0},
59 {"label":"I", "x":8.5, "y":0},
60 {"label":"O", "x":9.5, "y":0},
61 {"label":"P", "x":10.5, "y":0},
62 {"label":"A", "x":0, "y":1},
63 {"label":"S", "x":1, "y":1},
64 {"label":"D", "x":2, "y":1},
65 {"label":"F", "x":3, "y":1},
66 {"label":"G", "x":4, "y":1},
67 {"label":"Tab", "x":5, "y":1, "w":1.5},
68 {"label":"H", "x":6.5, "y":1},
69 {"label":"J", "x":7.5, "y":1},
70 {"label":"K", "x":8.5, "y":1},
71 {"label":"L", "x":9.5, "y":1},
72 {"label":"\"", "x":10.5, "y":1},
73 {"label":"Z", "x":0, "y":2},
74 {"label":"X", "x":1, "y":2},
75 {"label":"C", "x":2, "y":2},
76 {"label":"V", "x":3, "y":2},
77 {"label":"B", "x":4, "y":2},
78 {"label":"Shift", "x":5, "y":2, "w":1.5},
79 {"label":"N", "x":6.5, "y":2},
80 {"label":"M", "x":7.5, "y":2},
81 {"label":"<", "x":8.5, "y":2},
82 {"label":">", "x":9.5, "y":2},
83 {"label":"?", "x":10.5, "y":2},
84 {"label":"Ctrl", "x":1.25, "y":3.35, "w":1.25},
85 {"label":"Space", "x":2.5, "y":3.35, "w":6.25},
86 {"label":"Alt", "x":8.75, "y":3.35, "w":1.25}
87 ]
88 }
89 }
90}
diff --git a/keyboards/qpockets/space_space/rev2/keymaps/big_space/config.h b/keyboards/qpockets/space_space/rev2/keymaps/big_space/config.h
new file mode 100644
index 0000000000..ffc2124e1b
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/keymaps/big_space/config.h
@@ -0,0 +1,27 @@
1/* Copyright 2021 qpockets
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#pragma once
18
19/*Modtaps*/
20#define TAPPING_TERM 175
21#define IGNORE_MOD_TAP_INTERRUPT
22
23/*Combos*/
24#ifdef COMBO_ENABLE
25# define COMBO_COUNT 5
26# define COMBO_TERM 50
27#endif \ No newline at end of file
diff --git a/keyboards/qpockets/space_space/rev2/keymaps/big_space/keymap.c b/keyboards/qpockets/space_space/rev2/keymaps/big_space/keymap.c
new file mode 100644
index 0000000000..a272c001b4
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/keymaps/big_space/keymap.c
@@ -0,0 +1,81 @@
1/* Copyright 2020 qpockets
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
19enum layers{
20 _BASE,
21 _SYM,
22 _NUM,
23 _NAV
24};
25
26enum combo_events {
27 COMBO_BSPC,
28 COMBO_ENT,
29 COMBO_TAB,
30 COMBO_ESC,
31 COMBO_DEL
32};
33#define KC_UP_SPC LT(_SYM, KC_SPC)
34#define KC_GZ LGUI_T(KC_Z)
35#define KC_AA LALT_T(KC_A)
36#define KC_CC LCTL_T(KC_C)
37#define KC_SF LSFT_T(KC_F)
38#define KC_SJ RSFT_T(KC_J)
39#define KC_CCOMM RCTL_T(KC_COMM)
40#define KC_AQUOT RALT_T(KC_QUOT)
41#define KC_GSLSH RGUI_T(KC_SLSH)
42
43const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
44 [_BASE] = LAYOUT_big_space(
45 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_Y, KC_U, KC_I, KC_O, KC_P,
46 KC_AA, KC_S, KC_D, KC_SF, KC_G, KC_BSPC, KC_H, KC_SJ, KC_K, KC_L, KC_AQUOT,
47 KC_GZ, KC_X, KC_CC, KC_V, KC_B, KC_LSFT, KC_N, KC_M, KC_CCOMM, KC_DOT, KC_GSLSH,
48 MO(_NAV), KC_UP_SPC, KC_RALT
49 ),
50
51 [_SYM] = LAYOUT_big_space(
52 KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0,
53 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
54 KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_TRNS, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
55 KC_TRNS, KC_TRNS, KC_TRNS
56 ),
57
58 [_NAV] = LAYOUT_big_space(
59 KC_HOME, KC_UP, KC_END, KC_PGUP, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC,
60 KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TAB,
61 KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_ENT,
62 KC_TRNS, KC_TRNS, KC_TRNS
63 ),
64};
65
66
67#ifdef COMBO_ENABLE
68const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
69const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END};
70const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END};
71const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END};
72const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END};
73
74combo_t key_combos[COMBO_COUNT] = {
75 [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC),
76 [COMBO_ENT] = COMBO(combo_ent,KC_ENT),
77 [COMBO_TAB] = COMBO(combo_tab,KC_TAB),
78 [COMBO_ESC] = COMBO(combo_esc,KC_ESC),
79 [COMBO_DEL] = COMBO(combo_del,KC_DEL)
80};
81#endif
diff --git a/keyboards/qpockets/space_space/rev2/keymaps/big_space/rules.mk b/keyboards/qpockets/space_space/rev2/keymaps/big_space/rules.mk
new file mode 100644
index 0000000000..ff681299e4
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/keymaps/big_space/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/qpockets/space_space/rev2/keymaps/default/config.h b/keyboards/qpockets/space_space/rev2/keymaps/default/config.h
new file mode 100644
index 0000000000..0b0e89fa1f
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/keymaps/default/config.h
@@ -0,0 +1,27 @@
1/* Copyright 2021 qpockets
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#pragma once
18
19/*Modtaps*/
20#define TAPPING_TERM 165
21#define IGNORE_MOD_TAP_INTERRUPT
22
23/*Combos*/
24#ifdef COMBO_ENABLE
25# define COMBO_COUNT 5
26# define COMBO_TERM 50
27#endif \ No newline at end of file
diff --git a/keyboards/qpockets/space_space/rev2/keymaps/default/keymap.c b/keyboards/qpockets/space_space/rev2/keymaps/default/keymap.c
new file mode 100644
index 0000000000..64f34c8291
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/keymaps/default/keymap.c
@@ -0,0 +1,77 @@
1/* Copyright 2021 qpockets
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
19enum layers{
20 _BASE,
21 _SYM,
22 _NAV
23};
24
25enum combo_events {
26 COMBO_BSPC,
27 COMBO_ENT,
28 COMBO_TAB,
29 COMBO_ESC,
30 COMBO_DEL
31};
32#define KC_DN_BSPC LT(_NAV, KC_BSPC)
33#define KC_UP_SPC LT(_SYM, KC_SPC)
34#define KC_SF LSFT_T(KC_F)
35#define KC_SJ RSFT_T(KC_J)
36
37const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
38 [_BASE] = LAYOUT_default(
39 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_Y, KC_U, KC_I, KC_O, KC_P,
40 KC_A, KC_S, KC_D, KC_SF, KC_G, KC_TAB, KC_H, KC_SJ, KC_K, KC_L, KC_QUOT,
41 KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LSFT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
42 KC_LGUI, KC_LCTL, KC_DN_BSPC, KC_UP_SPC, KC_RALT, KC_MPLY
43 ),
44
45 [_SYM] = LAYOUT_default(
46 KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0,
47 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
48 KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_TRNS, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
49 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
50 ),
51
52 [_NAV] = LAYOUT_default(
53 KC_TRNS, KC_HOME, KC_UP, KC_END, KC_PGUP, RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_BSPC,
54 KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_TRNS, KC_F4, KC_F5, KC_F6, KC_F7, KC_TAB,
55 KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_LCAP, KC_F9, KC_F10, KC_F11, KC_F12, KC_ENT,
56 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
57 ),
58};
59
60
61
62
63#ifdef COMBO_ENABLE
64const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
65const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END};
66const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END};
67const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END};
68const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END};
69
70combo_t key_combos[COMBO_COUNT] = {
71 [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC),
72 [COMBO_ENT] = COMBO(combo_ent,KC_ENT),
73 [COMBO_TAB] = COMBO(combo_tab,KC_TAB),
74 [COMBO_ESC] = COMBO(combo_esc,KC_ESC),
75 [COMBO_DEL] = COMBO(combo_del,KC_DEL)
76};
77#endif
diff --git a/keyboards/qpockets/space_space/rev2/keymaps/default/rules.mk b/keyboards/qpockets/space_space/rev2/keymaps/default/rules.mk
new file mode 100644
index 0000000000..ab1e438182
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/keymaps/default/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes
diff --git a/keyboards/qpockets/space_space/rev2/keymaps/qpockets/config.h b/keyboards/qpockets/space_space/rev2/keymaps/qpockets/config.h
new file mode 100644
index 0000000000..bf8c47eb3e
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/keymaps/qpockets/config.h
@@ -0,0 +1,27 @@
1/* Copyright 2021 qpockets
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#pragma once
18
19/*Modtaps*/
20#define TAPPING_TERM 145
21#define IGNORE_MOD_TAP_INTERRUPT
22
23/*Combos*/
24#ifdef COMBO_ENABLE
25# define COMBO_COUNT 5
26# define COMBO_TERM 25
27#endif
diff --git a/keyboards/qpockets/space_space/rev2/keymaps/qpockets/keymap.c b/keyboards/qpockets/space_space/rev2/keymaps/qpockets/keymap.c
new file mode 100644
index 0000000000..986e435957
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/keymaps/qpockets/keymap.c
@@ -0,0 +1,75 @@
1/* Copyright 2021 qpockets
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
19enum layers{
20 _BASE,
21 _SYM,
22 _NAV
23};
24
25enum combo_events {
26 COMBO_BSPC,
27 COMBO_ENT,
28 COMBO_TAB,
29 COMBO_ESC,
30 COMBO_DEL
31};
32#define KC_DN_BSPC LT(_NAV, KC_BSPC)
33#define KC_UP_SPC LT(_SYM, KC_SPC)
34#define KC_SF LSFT_T(KC_F)
35#define KC_SJ RSFT_T(KC_J)
36
37const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
38 [_BASE] = LAYOUT_default(
39 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_Y, KC_U, KC_I, KC_O, KC_P,
40 KC_A, KC_S, KC_D, KC_SF, KC_G, KC_LGUI, KC_H, KC_SJ, KC_K, KC_L, KC_QUOT,
41 KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ENT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
42 KC_PSCR, KC_LCTL, KC_DN_BSPC, KC_UP_SPC, KC_RALT, KC_MPLY
43 ),
44
45 [_SYM] = LAYOUT_default(
46 KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0,
47 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
48 KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_TRNS, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
49 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
50 ),
51
52 [_NAV] = LAYOUT_default(
53 KC_TRNS, KC_HOME, KC_UP, KC_END, KC_PGUP, RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_BSPC,
54 KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_TRNS, KC_F5, KC_F6, KC_F7, KC_F8, KC_TAB,
55 KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_CAPS, KC_F9, KC_F10, KC_F11, KC_F12, KC_ENT,
56 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
57 ),
58};
59
60
61#ifdef COMBO_ENABLE
62const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
63const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END};
64const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END};
65const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END};
66const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END};
67
68combo_t key_combos[COMBO_COUNT] = {
69 [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC),
70 [COMBO_ENT] = COMBO(combo_ent,KC_ENT),
71 [COMBO_TAB] = COMBO(combo_tab,KC_TAB),
72 [COMBO_ESC] = COMBO(combo_esc,KC_ESC),
73 [COMBO_DEL] = COMBO(combo_del,KC_DEL)
74};
75#endif
diff --git a/keyboards/qpockets/space_space/rev2/keymaps/qpockets/rules.mk b/keyboards/qpockets/space_space/rev2/keymaps/qpockets/rules.mk
new file mode 100644
index 0000000000..ff681299e4
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/keymaps/qpockets/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/qpockets/space_space/rev2/readme.md b/keyboards/qpockets/space_space/rev2/readme.md
new file mode 100644
index 0000000000..d8391a21a6
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/readme.md
@@ -0,0 +1,18 @@
1# space_space
2
3![space_space](https://i.imgur.com/SxjhzIMh.jpg)
4
5Give your space some space
6
7* Keyboard Maintainer: https://github.com/qpockets
8* Hardware Availability: https://p3dstore.com/products/space-space-acrylic-case?_pos=21&_sid=c75de6a78&_ss=r&variant=39907740844216
9
10Make example for this keyboard (after setting up your build environment):
11
12 make space_space/rev2:default
13
14Flashing example for this keyboard:
15
16 make space_space/rev2:default:flash
17
18See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/qpockets/space_space/rev2/rev2.c b/keyboards/qpockets/space_space/rev2/rev2.c
new file mode 100644
index 0000000000..07b93b36aa
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/rev2.c
@@ -0,0 +1,35 @@
1
2/* Copyright 2021 qpockets
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17#include "rev2.h"
18
19bool encoder_update_kb(uint8_t index, bool clockwise) {
20 if (!encoder_update_user(index, clockwise)) { return false; }
21 if (index == 1) { /* left encoder*/
22 if (clockwise){
23 tap_code(KC_WH_U);
24 } else {
25 tap_code(KC_WH_D);
26 }
27 } else if (index == 0) { /* right encoder */
28 if (clockwise){
29 tap_code(KC_VOLU);
30 } else {
31 tap_code(KC_VOLD);
32 }
33 }
34 return true;
35}
diff --git a/keyboards/qpockets/space_space/rev2/rev2.h b/keyboards/qpockets/space_space/rev2/rev2.h
new file mode 100644
index 0000000000..99362b900f
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/rev2.h
@@ -0,0 +1,49 @@
1/* Copyright 2021 qpockets
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#pragma once
18
19#include "quantum.h"
20
21#define XXX KC_NO
22
23#define LAYOUT_default( \
24 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K50, \
25 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K51, \
26 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K52, \
27 K32, K33, K34, K36, K37, K38 \
28) \
29{ \
30 {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K50}, \
31 {K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K51}, \
32 {K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K52}, \
33 {XXX, XXX, K32, K33, K34, XXX, K36, K37, K38, XXX, XXX} \
34} \
35
36#define LAYOUT_big_space( \
37 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K50, \
38 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K51, \
39 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K52, \
40 K32, K35, K38 \
41) \
42{ \
43 {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K50}, \
44 {K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K51}, \
45 {K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K52}, \
46 {XXX, XXX, K32, XXX, XXX, K35, XXX, XXX, K38, XXX, XXX} \
47}
48
49
diff --git a/keyboards/qpockets/space_space/rev2/rules.mk b/keyboards/qpockets/space_space/rev2/rules.mk
new file mode 100644
index 0000000000..8876a45881
--- /dev/null
+++ b/keyboards/qpockets/space_space/rev2/rules.mk
@@ -0,0 +1,19 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19ENCODER_ENABLE = yes
diff --git a/keyboards/qpockets/space_space/rules.mk b/keyboards/qpockets/space_space/rules.mk
new file mode 100644
index 0000000000..0ffe2efbf2
--- /dev/null
+++ b/keyboards/qpockets/space_space/rules.mk
@@ -0,0 +1 @@
DEFAULT_FOLDER = qpockets/space_space/rev2
diff --git a/keyboards/qpockets/wanten/config.h b/keyboards/qpockets/wanten/config.h
new file mode 100644
index 0000000000..ed6294f73f
--- /dev/null
+++ b/keyboards/qpockets/wanten/config.h
@@ -0,0 +1,161 @@
1/*
2Copyright 2021 qpockets
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x7170 //qp
24#define PRODUCT_ID 0x7774 //wt
25#define DEVICE_VER 0x0001
26#define MANUFACTURER qpockets
27#define PRODUCT wanten
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 12
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42 */
43#define MATRIX_ROW_PINS { F0, F7, B3, D5 }
44#define MATRIX_COL_PINS { F4, F1, B5, B6, C6, C7, D4, E6, D2, B1, B2, D3 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50/* ROTARY ENCODERS */
51#define ENCODERS_PAD_A { F5, D6 }
52#define ENCODERS_PAD_B { F6, D7 }
53
54#define ENCODER_RESOLUTION 4
55//#define ENCODER_DIRECTION_FLIP
56
57/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
58#define DEBOUNCE 4
59
60/*nothing below here is needed for wanten unless enabling RGB. the correct RGB_DI_PIN is defined, the rest is up to you o7 */
61
62//#define RGB_DI_PIN B0
63//#ifdef RGB_DI_PIN
64//# define RGBLED_NUM 16
65//# define RGBLIGHT_HUE_STEP 8
66//# define RGBLIGHT_SAT_STEP 8
67//# define RGBLIGHT_VAL_STEP 8
68//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
69//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
70/*== all animations enable ==*/
71//# define RGBLIGHT_ANIMATIONS
72/*== or choose animations ==*/
73//# define RGBLIGHT_EFFECT_BREATHING
74//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
75//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
76//# define RGBLIGHT_EFFECT_SNAKE
77//# define RGBLIGHT_EFFECT_KNIGHT
78//# define RGBLIGHT_EFFECT_CHRISTMAS
79//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
80//# define RGBLIGHT_EFFECT_RGB_TEST
81//# define RGBLIGHT_EFFECT_ALTERNATING
82/*== customize breathing effect ==*/
83/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
84//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
85/*==== use exp() and sin() ====*/
86//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
87//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
88//#endif
89
90/*
91 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
92 */
93//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
94
95//#define LED_NUM_LOCK_PIN B0
96//#define LED_CAPS_LOCK_PIN B1
97//#define LED_SCROLL_LOCK_PIN B2
98//#define LED_COMPOSE_PIN B3
99//#define LED_KANA_PIN B4
100
101//#define BACKLIGHT_PIN B7
102//#define BACKLIGHT_LEVELS 3
103//#define BACKLIGHT_BREATHING
104
105/* define if matrix has ghost (lacks anti-ghosting diodes) */
106//#define MATRIX_HAS_GHOST
107
108/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
109//#define LOCKING_SUPPORT_ENABLE
110/* Locking resynchronize hack */
111//#define LOCKING_RESYNC_ENABLE
112
113/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
114 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
115 */
116//#define GRAVE_ESC_CTRL_OVERRIDE
117
118/*
119 * Force NKRO
120 *
121 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
122 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
123 * makefile for this to work.)
124 *
125 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
126 * until the next keyboard reset.
127 *
128 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
129 * fully operational during normal computer usage.
130 *
131 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
132 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
133 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
134 * power-up.
135 *
136 */
137//#define FORCE_NKRO
138
139/*
140 * Feature disable options
141 * These options are also useful to firmware size reduction.
142 */
143
144/* disable debug print */
145//#define NO_DEBUG
146
147/* disable print */
148//#define NO_PRINT
149
150/* disable action features */
151//#define NO_ACTION_LAYER
152//#define NO_ACTION_TAPPING
153//#define NO_ACTION_ONESHOT
154
155/* disable these deprecated features by default */
156#define NO_ACTION_MACRO
157#define NO_ACTION_FUNCTION
158
159/* Bootmagic Lite key configuration */
160//#define BOOTMAGIC_LITE_ROW 0
161//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/qpockets/wanten/info.json b/keyboards/qpockets/wanten/info.json
new file mode 100644
index 0000000000..e683761582
--- /dev/null
+++ b/keyboards/qpockets/wanten/info.json
@@ -0,0 +1,152 @@
1{
2 "keyboard_name": "wanten",
3 "url": "",
4 "maintainer": "qpockets",
5 "layouts": {
6 "LAYOUT_default": {
7 "layout": [
8 {"label":"Play", "x":0, "y":0},
9 {"label":"q", "x":1, "y":0},
10 {"label":"w", "x":2, "y":0},
11 {"label":"e", "x":3, "y":0},
12 {"label":"r", "x":4, "y":0},
13 {"label":"t", "x":5, "y":0},
14 {"label":"Del", "x":6, "y":0, "w":1.75},
15 {"label":"y", "x":7.75, "y":0},
16 {"label":"u", "x":8.75, "y":0},
17 {"label":"i", "x":9.75, "y":0},
18 {"label":"o", "x":10.75, "y":0},
19 {"label":"p", "x":11.75, "y":0},
20 {"label":"Next", "x":0, "y":1},
21 {"label":"a", "x":1, "y":1},
22 {"label":"s", "x":2, "y":1},
23 {"label":"d", "x":3, "y":1},
24 {"label":"f", "x":4, "y":1},
25 {"label":"g", "x":5, "y":1},
26 {"label":"Tab", "x":6, "y":1, "w":1.75},
27 {"label":"h", "x":7.75, "y":1},
28 {"label":"j", "x":8.75, "y":1},
29 {"label":"k", "x":9.75, "y":1},
30 {"label":"l", "x":10.75, "y":1},
31 {"label":"\"", "x":11.75, "y":1},
32 {"label":"Prev", "x":0, "y":2},
33 {"label":"z", "x":1, "y":2},
34 {"label":"x", "x":2, "y":2},
35 {"label":"c", "x":3, "y":2},
36 {"label":"v", "x":4, "y":2},
37 {"label":"b", "x":5, "y":2},
38 {"label":"Shift", "x":6, "y":2, "w":1.75},
39 {"label":"n", "x":7.75, "y":2},
40 {"label":"m", "x":8.75, "y":2},
41 {"label":"<", "x":9.75, "y":2},
42 {"label":">", "x":10.75, "y":2},
43 {"label":"?", "x":11.75, "y":2},
44 {"label":"LCtrl", "x":0, "y":3, "w":1.25},
45 {"label":"LGui", "x":1.25, "y":3, "w":1.25},
46 {"label":"LAlt", "x":2.5, "y":3, "w":1.25},
47 {"label":"Back", "x":3.75, "y":3, "w":3},
48 {"label":"Space", "x":6.75, "y":3, "w":3},
49 {"label":"RCtrl", "x":9.75, "y":3},
50 {"label":"RGui", "x":10.75, "y":3},
51 {"label":"RAlt", "x":11.75, "y":3}
52 ]
53 },
54
55 "LAYOUT_2u_bars": {
56 "layout": [
57 {"label":"Play", "x":0, "y":0},
58 {"label":"q", "x":1, "y":0},
59 {"label":"w", "x":2, "y":0},
60 {"label":"e", "x":3, "y":0},
61 {"label":"r", "x":4, "y":0},
62 {"label":"t", "x":5, "y":0},
63 {"label":"Del", "x":6, "y":0, "w":1.75},
64 {"label":"y", "x":7.75, "y":0},
65 {"label":"u", "x":8.75, "y":0},
66 {"label":"i", "x":9.75, "y":0},
67 {"label":"o", "x":10.75, "y":0},
68 {"label":"p", "x":11.75, "y":0},
69 {"label":"Next", "x":0, "y":1},
70 {"label":"a", "x":1, "y":1},
71 {"label":"s", "x":2, "y":1},
72 {"label":"d", "x":3, "y":1},
73 {"label":"f", "x":4, "y":1},
74 {"label":"g", "x":5, "y":1},
75 {"label":"Tab", "x":6, "y":1, "w":1.75},
76 {"label":"h", "x":7.75, "y":1},
77 {"label":"j", "x":8.75, "y":1},
78 {"label":"k", "x":9.75, "y":1},
79 {"label":"l", "x":10.75, "y":1},
80 {"label":"\"", "x":11.75, "y":1},
81 {"label":"Prev", "x":0, "y":2},
82 {"label":"z", "x":1, "y":2},
83 {"label":"x", "x":2, "y":2},
84 {"label":"c", "x":3, "y":2},
85 {"label":"v", "x":4, "y":2},
86 {"label":"b", "x":5, "y":2},
87 {"label":"Shift", "x":6, "y":2, "w":1.75},
88 {"label":"n", "x":7.75, "y":2},
89 {"label":"m", "x":8.75, "y":2},
90 {"label":"<", "x":9.75, "y":2},
91 {"label":">", "x":10.75, "y":2},
92 {"label":"?", "x":11.75, "y":2},
93 {"label":"PSCR", "x":0, "y":3, "w":1.25},
94 {"label":"LAlt", "x":1.25, "y":3, "w":1.25},
95 {"label":"LGui", "x":2.5, "y":3, "w":1.25},
96 {"label":"LCtl", "x":3.75, "y":3},
97 {"label":"Back", "x":4.75, "y":3, "w":2},
98 {"label":"Space", "x":6.75, "y":3, "w":2.25},
99 {"label":"RCtrl", "x":9, "y":3},
100 {"label":"RGui", "x":10, "y":3, "w":1.25},
101 {"label":"RAlt", "x":11.25, "y":3, "w":1.5}
102 ]
103 },
104
105 "LAYOUT_625_bar": {
106 "layout": [
107 {"label":"Play", "x":0, "y":0},
108 {"label":"q", "x":1, "y":0},
109 {"label":"w", "x":2, "y":0},
110 {"label":"e", "x":3, "y":0},
111 {"label":"r", "x":4, "y":0},
112 {"label":"t", "x":5, "y":0},
113 {"label":"Del", "x":6, "y":0, "w":1.75},
114 {"label":"y", "x":7.75, "y":0},
115 {"label":"u", "x":8.75, "y":0},
116 {"label":"i", "x":9.75, "y":0},
117 {"label":"o", "x":10.75, "y":0},
118 {"label":"p", "x":11.75, "y":0},
119 {"label":"Next", "x":0, "y":1},
120 {"label":"a", "x":1, "y":1},
121 {"label":"s", "x":2, "y":1},
122 {"label":"d", "x":3, "y":1},
123 {"label":"f", "x":4, "y":1},
124 {"label":"g", "x":5, "y":1},
125 {"label":"Tab", "x":6, "y":1, "w":1.75},
126 {"label":"h", "x":7.75, "y":1},
127 {"label":"j", "x":8.75, "y":1},
128 {"label":"k", "x":9.75, "y":1},
129 {"label":"l", "x":10.75, "y":1},
130 {"label":"\"", "x":11.75, "y":1},
131 {"label":"Prev", "x":0, "y":2},
132 {"label":"z", "x":1, "y":2},
133 {"label":"x", "x":2, "y":2},
134 {"label":"c", "x":3, "y":2},
135 {"label":"v", "x":4, "y":2},
136 {"label":"b", "x":5, "y":2},
137 {"label":"Shift", "x":6, "y":2, "w":1.75},
138 {"label":"n", "x":7.75, "y":2},
139 {"label":"m", "x":8.75, "y":2},
140 {"label":"<", "x":9.75, "y":2},
141 {"label":">", "x":10.75, "y":2},
142 {"label":"?", "x":11.75, "y":2},
143 {"label":"LAlt", "x":0, "y":3, "w":1.25},
144 {"label":"LGui", "x":1.25, "y":3, "w":1.25},
145 {"label":"LCtrl", "x":2.5, "y":3, "w":1.25},
146 {"label":"Space", "x":3.75, "y":3, "w":6.25},
147 {"label":"RAlt", "x":10, "y":3, "w":1.25},
148 {"label":"RCtrl", "x":11.25, "y":3, "w":1.5}
149 ]
150 }
151 }
152} \ No newline at end of file
diff --git a/keyboards/qpockets/wanten/keymaps/2u_bars/config.h b/keyboards/qpockets/wanten/keymaps/2u_bars/config.h
new file mode 100644
index 0000000000..51e54382af
--- /dev/null
+++ b/keyboards/qpockets/wanten/keymaps/2u_bars/config.h
@@ -0,0 +1,27 @@
1/* Copyright 2021 qpockets
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#pragma once
18
19/*Modtaps*/
20#define TAPPING_TERM 145
21#define IGNORE_MOD_TAP_INTERRUPT
22
23/*Combos*/
24#ifdef COMBO_ENABLE
25# define COMBO_COUNT 5
26# define COMBO_TERM 25
27#endif
diff --git a/keyboards/qpockets/wanten/keymaps/2u_bars/keymap.c b/keyboards/qpockets/wanten/keymaps/2u_bars/keymap.c
new file mode 100644
index 0000000000..5e2dd8aa09
--- /dev/null
+++ b/keyboards/qpockets/wanten/keymaps/2u_bars/keymap.c
@@ -0,0 +1,104 @@
1/* Copyright 2021 qpockets
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
19enum layers{
20 _BASE,
21 _GAME,
22 _SYM,
23 _NAV
24
25};
26
27enum combo_events {
28 COMBO_BSPC,
29 COMBO_ENT,
30 COMBO_TAB,
31 COMBO_ESC,
32 COMBO_DEL
33};
34#define KC_DN_BSPC LT(_NAV, KC_BSPC)
35#define KC_UP_SPC LT(_SYM, KC_SPC)
36#define KC_GUP_BSPC LT(_SYM, KC_BSPC)
37#define KC_SF LSFT_T(KC_F)
38#define KC_SJ RSFT_T(KC_J)
39#define SNIP S(G(KC_S))
40
41const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
42 [_BASE] = LAYOUT_2u_bars(
43 KC_MPLY, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_Y, KC_U, KC_I, KC_O, KC_P,
44 KC_MNXT, KC_A, KC_S, KC_D, KC_SF, KC_G, KC_RGUI, KC_H, KC_SJ, KC_K, KC_L, KC_QUOT,
45 KC_MPRV, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ENT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
46 SNIP, KC_LGUI, KC_LCTL, KC_LCTL, KC_DN_BSPC, KC_UP_SPC, KC_RALT, TG(_GAME), KC_MUTE
47 ),
48
49 [_GAME] = LAYOUT_2u_bars(
50 KC_TRNS, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_ESC, KC_Y, KC_U, KC_I, KC_O, KC_P,
51 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LSFT, KC_H, KC_SJ, KC_K, KC_L, KC_QUOT,
52 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ENT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
53 KC_LCTRL, KC_LGUI, KC_LALT, KC_ESC, KC_SPC, KC_GUP_BSPC, KC_RALT, KC_TRNS, KC_BSPC
54 ),
55
56 [_SYM] = LAYOUT_2u_bars(
57 KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0,
58 KC_TRNS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
59 KC_TRNS, KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_TRNS, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
60 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
61 ),
62
63 [_NAV] = LAYOUT_2u_bars(
64 KC_TRNS, KC_TRNS, KC_HOME, KC_UP, KC_END, KC_PGUP, RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_BSPC,
65 KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_TRNS, KC_F5, KC_F6, KC_F7, KC_F8, KC_TAB,
66 KC_TRNS, KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_CAPS, KC_F9, KC_F10, KC_F11, KC_F12, KC_ENT,
67 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
68 ),
69
70};
71
72bool encoder_update_user(uint8_t index, bool clockwise) {
73 if (index == 0) { /* left encoder */
74 if (clockwise) {
75 tap_code(KC_VOLU);
76 } else {
77 tap_code(KC_VOLD);
78 }
79 } else if (index == 1) { /* center encoder */
80 if (clockwise) {
81 tap_code(KC_WH_U);
82 } else {
83 tap_code(KC_WH_D);
84 }
85 }
86 return true;
87}
88
89#ifdef COMBO_ENABLE
90const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
91const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END};
92const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END};
93const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END};
94const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END};
95
96combo_t key_combos[COMBO_COUNT] = {
97 [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC),
98 [COMBO_ENT] = COMBO(combo_ent,KC_ENT),
99 [COMBO_TAB] = COMBO(combo_tab,KC_TAB),
100 [COMBO_ESC] = COMBO(combo_esc,KC_ESC),
101 [COMBO_DEL] = COMBO(combo_del,KC_DEL)
102};
103#endif
104
diff --git a/keyboards/qpockets/wanten/keymaps/2u_bars/rules.mk b/keyboards/qpockets/wanten/keymaps/2u_bars/rules.mk
new file mode 100644
index 0000000000..ab1e438182
--- /dev/null
+++ b/keyboards/qpockets/wanten/keymaps/2u_bars/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes
diff --git a/keyboards/qpockets/wanten/keymaps/625_bar/config.h b/keyboards/qpockets/wanten/keymaps/625_bar/config.h
new file mode 100644
index 0000000000..51e54382af
--- /dev/null
+++ b/keyboards/qpockets/wanten/keymaps/625_bar/config.h
@@ -0,0 +1,27 @@
1/* Copyright 2021 qpockets
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#pragma once
18
19/*Modtaps*/
20#define TAPPING_TERM 145
21#define IGNORE_MOD_TAP_INTERRUPT
22
23/*Combos*/
24#ifdef COMBO_ENABLE
25# define COMBO_COUNT 5
26# define COMBO_TERM 25
27#endif
diff --git a/keyboards/qpockets/wanten/keymaps/625_bar/keymap.c b/keyboards/qpockets/wanten/keymaps/625_bar/keymap.c
new file mode 100644
index 0000000000..b1cc213d1b
--- /dev/null
+++ b/keyboards/qpockets/wanten/keymaps/625_bar/keymap.c
@@ -0,0 +1,104 @@
1/* Copyright 2021 qpockets
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
19enum layers{
20 _BASE,
21 _GAME,
22 _SYM,
23 _NAV
24
25};
26
27enum combo_events {
28 COMBO_BSPC,
29 COMBO_ENT,
30 COMBO_TAB,
31 COMBO_ESC,
32 COMBO_DEL
33};
34#define KC_DZ LT(_NAV, KC_Z)
35#define KC_UP_SPC LT(_SYM, KC_SPC)
36//#define KC_GUP_BSPC LT(_SYM, KC_BSPC)
37#define KC_SF LSFT_T(KC_F)
38#define KC_SJ RSFT_T(KC_J)
39#define SNIP S(G(KC_S))
40
41const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
42 [_BASE] = LAYOUT_625_bar(
43 KC_MPLY, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_Y, KC_U, KC_I, KC_O, KC_P,
44 KC_MNXT, KC_A, KC_S, KC_D, KC_SF, KC_G, KC_RGUI, KC_H, KC_SJ, KC_K, KC_L, KC_QUOT,
45 KC_MPRV, KC_DZ, KC_X, KC_C, KC_V, KC_B, KC_ENT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
46 SNIP, KC_LGUI, KC_LCTL, KC_UP_SPC, KC_RALT, TG(_GAME)
47 ),
48
49 [_GAME] = LAYOUT_625_bar(
50 KC_TRNS, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_ESC, KC_Y, KC_U, KC_I, KC_O, KC_P,
51 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LSFT, KC_H, KC_SJ, KC_K, KC_L, KC_QUOT,
52 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ENT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
53 KC_LCTRL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_TRNS
54 ),
55
56 [_SYM] = LAYOUT_625_bar(
57 KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0,
58 KC_TRNS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
59 KC_TRNS, KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_TRNS, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
60 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
61 ),
62
63 [_NAV] = LAYOUT_625_bar(
64 KC_TRNS, KC_TRNS, KC_HOME, KC_UP, KC_END, KC_PGUP, RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_BSPC,
65 KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_TRNS, KC_F5, KC_F6, KC_F7, KC_F8, KC_TAB,
66 KC_TRNS, KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_CAPS, KC_F9, KC_F10, KC_F11, KC_F12, KC_ENT,
67 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
68 ),
69
70};
71
72bool encoder_update_user(uint8_t index, bool clockwise) {
73 if (index == 0) { /* left encoder */
74 if (clockwise) {
75 tap_code(KC_VOLU);
76 } else {
77 tap_code(KC_VOLD);
78 }
79 } else if (index == 1) { /* center encoder */
80 if (clockwise) {
81 tap_code(KC_WH_D);
82 } else {
83 tap_code(KC_WH_U);
84 }
85 }
86 return true;
87}
88
89#ifdef COMBO_ENABLE
90const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
91const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END};
92const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END};
93const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END};
94const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END};
95
96combo_t key_combos[COMBO_COUNT] = {
97 [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC),
98 [COMBO_ENT] = COMBO(combo_ent,KC_ENT),
99 [COMBO_TAB] = COMBO(combo_tab,KC_TAB),
100 [COMBO_ESC] = COMBO(combo_esc,KC_ESC),
101 [COMBO_DEL] = COMBO(combo_del,KC_DEL)
102};
103#endif
104
diff --git a/keyboards/qpockets/wanten/keymaps/625_bar/rules.mk b/keyboards/qpockets/wanten/keymaps/625_bar/rules.mk
new file mode 100644
index 0000000000..ab1e438182
--- /dev/null
+++ b/keyboards/qpockets/wanten/keymaps/625_bar/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes
diff --git a/keyboards/qpockets/wanten/keymaps/default/config.h b/keyboards/qpockets/wanten/keymaps/default/config.h
new file mode 100644
index 0000000000..51e54382af
--- /dev/null
+++ b/keyboards/qpockets/wanten/keymaps/default/config.h
@@ -0,0 +1,27 @@
1/* Copyright 2021 qpockets
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#pragma once
18
19/*Modtaps*/
20#define TAPPING_TERM 145
21#define IGNORE_MOD_TAP_INTERRUPT
22
23/*Combos*/
24#ifdef COMBO_ENABLE
25# define COMBO_COUNT 5
26# define COMBO_TERM 25
27#endif
diff --git a/keyboards/qpockets/wanten/keymaps/default/keymap.c b/keyboards/qpockets/wanten/keymaps/default/keymap.c
new file mode 100644
index 0000000000..f0cec2cc45
--- /dev/null
+++ b/keyboards/qpockets/wanten/keymaps/default/keymap.c
@@ -0,0 +1,104 @@
1/* Copyright 2021 qpockets
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
19enum layers{
20 _BASE,
21 _GAME,
22 _SYM,
23 _NAV
24
25};
26
27enum combo_events {
28 COMBO_BSPC,
29 COMBO_ENT,
30 COMBO_TAB,
31 COMBO_ESC,
32 COMBO_DEL
33};
34#define KC_DN_BSPC LT(_NAV, KC_BSPC)
35#define KC_UP_SPC LT(_SYM, KC_SPC)
36#define KC_GUP_BSPC LT(_SYM, KC_BSPC)
37#define KC_SF LSFT_T(KC_F)
38#define KC_SJ RSFT_T(KC_J)
39#define SNIP S(G(KC_S))
40
41const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
42 [_BASE] = LAYOUT_default(
43 KC_MPLY, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_Y, KC_U, KC_I, KC_O, KC_P,
44 KC_MNXT, KC_A, KC_S, KC_D, KC_SF, KC_G, KC_RGUI, KC_H, KC_SJ, KC_K, KC_L, KC_QUOT,
45 KC_MPRV, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ENT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
46 SNIP, KC_LGUI, KC_LCTL, KC_DN_BSPC, KC_UP_SPC, KC_RALT, TG(_GAME), KC_MUTE
47 ),
48
49 [_GAME] = LAYOUT_default(
50 KC_TRNS, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_ESC, KC_Y, KC_U, KC_I, KC_O, KC_P,
51 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LSFT, KC_H, KC_SJ, KC_K, KC_L, KC_QUOT,
52 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ENT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
53 KC_LCTRL, KC_LGUI, KC_LALT, KC_SPC, KC_GUP_BSPC, KC_RALT, KC_TRNS, KC_BSPC
54 ),
55
56 [_SYM] = LAYOUT_default(
57 KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0,
58 KC_TRNS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
59 KC_TRNS, KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_TRNS, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
60 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
61 ),
62
63 [_NAV] = LAYOUT_default(
64 KC_TRNS, KC_TRNS, KC_HOME, KC_UP, KC_END, KC_PGUP, RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_BSPC,
65 KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_TRNS, KC_F5, KC_F6, KC_F7, KC_F8, KC_TAB,
66 KC_TRNS, KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_CAPS, KC_F9, KC_F10, KC_F11, KC_F12, KC_ENT,
67 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
68 ),
69
70};
71
72bool encoder_update_user(uint8_t index, bool clockwise) {
73 if (index == 0) { /* left encoder */
74 if (clockwise) {
75 tap_code(KC_VOLU);
76 } else {
77 tap_code(KC_VOLD);
78 }
79 } else if (index == 1) { /* center encoder */
80 if (clockwise) {
81 tap_code(KC_WH_U);
82 } else {
83 tap_code(KC_WH_D);
84 }
85 }
86 return true;
87}
88
89#ifdef COMBO_ENABLE
90const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
91const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END};
92const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END};
93const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END};
94const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END};
95
96combo_t key_combos[COMBO_COUNT] = {
97 [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC),
98 [COMBO_ENT] = COMBO(combo_ent,KC_ENT),
99 [COMBO_TAB] = COMBO(combo_tab,KC_TAB),
100 [COMBO_ESC] = COMBO(combo_esc,KC_ESC),
101 [COMBO_DEL] = COMBO(combo_del,KC_DEL)
102};
103#endif
104
diff --git a/keyboards/qpockets/wanten/keymaps/default/readme.md b/keyboards/qpockets/wanten/keymaps/default/readme.md
new file mode 100644
index 0000000000..5a2b63c0bb
--- /dev/null
+++ b/keyboards/qpockets/wanten/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for wanten
diff --git a/keyboards/qpockets/wanten/keymaps/default/rules.mk b/keyboards/qpockets/wanten/keymaps/default/rules.mk
new file mode 100644
index 0000000000..ab1e438182
--- /dev/null
+++ b/keyboards/qpockets/wanten/keymaps/default/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes
diff --git a/keyboards/qpockets/wanten/readme.md b/keyboards/qpockets/wanten/readme.md
new file mode 100644
index 0000000000..243e949f34
--- /dev/null
+++ b/keyboards/qpockets/wanten/readme.md
@@ -0,0 +1,27 @@
1# wanten
2
3![wanten](https://i.imgur.com/d7o1Edf.png)
4
5an ortho drop in PCB for Van cases
6
7* Keyboard Maintainer: [qpockets](https://github.com/qpockets)
8* Hardware Supported: V1 wanten PCB
9* Hardware Availability: [pocketspace discord server](https://discord.gg/fKbTxraHc6)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make qpockets/wanten:default
14
15Flashing example for this keyboard:
16
17 make qpockets/wanten:default:flash
18
19See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
20
21## Bootloader
22
23Enter the bootloader in 3 ways:
24
25* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (top left key or encoder) and plug in the keyboard
26* **Physical reset button**: Briefly press the button on the back of the PCB
27* **Keycode in layout**: Press the key mapped to `RESET` if it is available
diff --git a/keyboards/qpockets/wanten/rules.mk b/keyboards/qpockets/wanten/rules.mk
new file mode 100644
index 0000000000..c4a39c910f
--- /dev/null
+++ b/keyboards/qpockets/wanten/rules.mk
@@ -0,0 +1,19 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19ENCODER_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/qpockets/wanten/wanten.c b/keyboards/qpockets/wanten/wanten.c
new file mode 100644
index 0000000000..15f3e64cb8
--- /dev/null
+++ b/keyboards/qpockets/wanten/wanten.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 qpockets
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 "wanten.h"
diff --git a/keyboards/qpockets/wanten/wanten.h b/keyboards/qpockets/wanten/wanten.h
new file mode 100644
index 0000000000..e6db44fea6
--- /dev/null
+++ b/keyboards/qpockets/wanten/wanten.h
@@ -0,0 +1,65 @@
1/* Copyright 2021 qpockets
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#pragma once
18
19#include "quantum.h"
20
21#define XXX KC_NO
22
23/* This is a shortcut to help you visually see your layout.
24 *
25 * The first section contains all of the arguments representing the physical
26 * layout of the board and position of the keys.
27 *
28 * The second converts the arguments into a two-dimensional array which
29 * represents the switch matrix.
30 */
31#define LAYOUT_default( \
32 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k50, k51, \
33 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k60, k61, \
34 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k70, k71, \
35 k30, k31, k32, k35, k37, k39, k80, k81 \
36) { \
37 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k50, k51, }, \
38 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k60, k61, }, \
39 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k70, k71, }, \
40 { k30, k31, k32, XXX, XXX, k35, XXX, k37, XXX, k39, k80, k81, } \
41}
42
43#define LAYOUT_625_bar( \
44 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k50, k51, \
45 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k60, k61, \
46 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k70, k71, \
47 k30, k31, k32, k36, k39, k81 \
48) { \
49 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k50, k51, }, \
50 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k60, k61, }, \
51 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k70, k71, }, \
52 { k30, k31, k32, XXX, XXX, XXX, k36, XXX, XXX, k39, XXX, k81, } \
53}
54
55#define LAYOUT_2u_bars( \
56 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k50, k51, \
57 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k60, k61, \
58 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k70, k71, \
59 k30, k31, k32, k34, k35, k37, k38, k39, k81 \
60) { \
61 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k50, k51, }, \
62 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k60, k61, }, \
63 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k70, k71, }, \
64 { k30, k31, k32, XXX, k34, k35, XXX, k37, k38, k39, XXX, k81, } \
65}