diff options
31 files changed, 696 insertions, 87 deletions
diff --git a/keyboards/space_space/readme.md b/keyboards/space_space/readme.md index c0d254faa..08fa640f2 100644 --- a/keyboards/space_space/readme.md +++ b/keyboards/space_space/readme.md | |||
@@ -1,18 +1,18 @@ | |||
1 | # space_space | 1 | # space_space |
2 | 2 | ||
3 |  | 3 |  |
4 | 4 | ||
5 | Give your space some space | 5 | Give your space some space |
6 | 6 | ||
7 | * Keyboard Maintainer: https://github.com/qpockets | 7 | * Keyboard Maintainer: https://github.com/qpockets |
8 | * Hardware Availability: | 8 | * Hardware Availability: [p3dstore](https://p3dstore.com/products/space-space-acrylic-case?_pos=21&_sid=c75de6a78&_ss=r&variant=39907740844216) |
9 | 9 | ||
10 | Make example for this keyboard (after setting up your build environment): | 10 | Make example for this keyboard (after setting up your build environment): |
11 | 11 | ||
12 | make space_space:default | 12 | make space_space/rev2:default |
13 | 13 | ||
14 | Flashing example for this keyboard: | 14 | Flashing example for this keyboard: |
15 | 15 | ||
16 | make space_space:default:flash | 16 | make space_space/rev2:default:flash |
17 | 17 | ||
18 | See 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). | 18 | See 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/space_space/config.h b/keyboards/space_space/rev1/config.h index 20b1180d3..d52aad4c2 100644 --- a/keyboards/space_space/config.h +++ b/keyboards/space_space/rev1/config.h | |||
@@ -13,7 +13,7 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 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/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #pragma once | 17 | #pragma once |
18 | 18 | ||
19 | #include "config_common.h" | 19 | #include "config_common.h" |
@@ -28,9 +28,11 @@ | |||
28 | /* key matrix size */ | 28 | /* key matrix size */ |
29 | #define MATRIX_ROWS 4 | 29 | #define MATRIX_ROWS 4 |
30 | #define MATRIX_COLS 11 | 30 | #define MATRIX_COLS 11 |
31 | 31 | ||
32 | #define MATRIX_ROW_PINS { F1, F4, F5, C7 } | 32 | #define MATRIX_ROW_PINS \ |
33 | #define MATRIX_COL_PINS { D4, B4, B5, B6, C6, F7, F6, F0, B0, E6, B1 } | 33 | { F1, F4, F5, C7 } |
34 | #define MATRIX_COL_PINS \ | ||
35 | { D4, B4, B5, B6, C6, F7, F6, F0, B0, E6, B1 } | ||
34 | 36 | ||
35 | #define UNUSED_PINS | 37 | #define UNUSED_PINS |
36 | 38 | ||
@@ -38,13 +40,15 @@ | |||
38 | #define DIODE_DIRECTION COL2ROW | 40 | #define DIODE_DIRECTION COL2ROW |
39 | 41 | ||
40 | /* ROTARY ENCODERS */ | 42 | /* ROTARY ENCODERS */ |
41 | #define ENCODERS_PAD_A { B3, D6 } | 43 | #define ENCODERS_PAD_A \ |
42 | #define ENCODERS_PAD_B { B2, D7 } | 44 | { B3, D6 } |
45 | #define ENCODERS_PAD_B \ | ||
46 | { B2, D7 } | ||
43 | 47 | ||
44 | #define ENCODER_RESOLUTIONS { 3, 4 } | 48 | #define ENCODER_RESOLUTIONS \ |
49 | { 3, 4 } | ||
45 | //#define ENCODER_DIRECTION_FLIP | 50 | //#define ENCODER_DIRECTION_FLIP |
46 | 51 | ||
47 | |||
48 | #define DEBOUNCE 7 | 52 | #define DEBOUNCE 7 |
49 | 53 | ||
50 | #define LOCKING_SUPPORT_ENABLE | 54 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/space_space/info.json b/keyboards/space_space/rev1/info.json index b0dcdc859..b0dcdc859 100644 --- a/keyboards/space_space/info.json +++ b/keyboards/space_space/rev1/info.json | |||
diff --git a/keyboards/space_space/keymaps/big_space/config.h b/keyboards/space_space/rev1/keymaps/big_space/config.h index ffc2124e1..ffc2124e1 100644 --- a/keyboards/space_space/keymaps/big_space/config.h +++ b/keyboards/space_space/rev1/keymaps/big_space/config.h | |||
diff --git a/keyboards/space_space/keymaps/big_space/keymap.c b/keyboards/space_space/rev1/keymaps/big_space/keymap.c index f99925971..62241532e 100644 --- a/keyboards/space_space/keymaps/big_space/keymap.c +++ b/keyboards/space_space/rev1/keymaps/big_space/keymap.c | |||
@@ -13,7 +13,6 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 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/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | |||
17 | #include QMK_KEYBOARD_H | 16 | #include QMK_KEYBOARD_H |
18 | 17 | ||
19 | enum layers{ | 18 | enum layers{ |
@@ -94,7 +93,6 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
94 | } | 93 | } |
95 | } else if (index == 0) { /* right encoder */ | 94 | } else if (index == 0) { /* right encoder */ |
96 | switch(get_highest_layer(layer_state)){ | 95 | switch(get_highest_layer(layer_state)){ |
97 | |||
98 | case _SYM: | 96 | case _SYM: |
99 | if (clockwise) { | 97 | if (clockwise) { |
100 | tap_code(KC_MPRV); | 98 | tap_code(KC_MPRV); |
diff --git a/keyboards/space_space/keymaps/big_space/rules.mk b/keyboards/space_space/rev1/keymaps/big_space/rules.mk index ff681299e..ff681299e 100644 --- a/keyboards/space_space/keymaps/big_space/rules.mk +++ b/keyboards/space_space/rev1/keymaps/big_space/rules.mk | |||
diff --git a/keyboards/space_space/keymaps/default/config.h b/keyboards/space_space/rev1/keymaps/default/config.h index ffc2124e1..ffc2124e1 100644 --- a/keyboards/space_space/keymaps/default/config.h +++ b/keyboards/space_space/rev1/keymaps/default/config.h | |||
diff --git a/keyboards/space_space/keymaps/default/keymap.c b/keyboards/space_space/rev1/keymaps/default/keymap.c index 3de82fa92..6b4219b28 100644 --- a/keyboards/space_space/keymaps/default/keymap.c +++ b/keyboards/space_space/rev1/keymaps/default/keymap.c | |||
@@ -13,7 +13,6 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 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/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | |||
17 | #include QMK_KEYBOARD_H | 16 | #include QMK_KEYBOARD_H |
18 | 17 | ||
19 | enum layers{ | 18 | enum layers{ |
@@ -96,7 +95,6 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
96 | } | 95 | } |
97 | } else if (index == 0) { /* right encoder */ | 96 | } else if (index == 0) { /* right encoder */ |
98 | switch(get_highest_layer(layer_state)){ | 97 | switch(get_highest_layer(layer_state)){ |
99 | |||
100 | case _SYM: | 98 | case _SYM: |
101 | if (clockwise) { | 99 | if (clockwise) { |
102 | tap_code(KC_MPRV); | 100 | tap_code(KC_MPRV); |
diff --git a/keyboards/space_space/keymaps/default/rules.mk b/keyboards/space_space/rev1/keymaps/default/rules.mk index ff681299e..ff681299e 100644 --- a/keyboards/space_space/keymaps/default/rules.mk +++ b/keyboards/space_space/rev1/keymaps/default/rules.mk | |||
diff --git a/keyboards/space_space/keymaps/readme.md b/keyboards/space_space/rev1/keymaps/readme.md index 79e944c71..79e944c71 100644 --- a/keyboards/space_space/keymaps/readme.md +++ b/keyboards/space_space/rev1/keymaps/readme.md | |||
diff --git a/keyboards/space_space/rev1/readme.md b/keyboards/space_space/rev1/readme.md new file mode 100644 index 000000000..4b170612e --- /dev/null +++ b/keyboards/space_space/rev1/readme.md | |||
@@ -0,0 +1,18 @@ | |||
1 | # space_space | ||
2 | |||
3 |  | ||
4 | |||
5 | Give your space some space | ||
6 | |||
7 | * Keyboard Maintainer: https://github.com/qpockets | ||
8 | * Hardware Availability: limited | ||
9 | |||
10 | Make example for this keyboard (after setting up your build environment): | ||
11 | |||
12 | make space_space/rev1:default | ||
13 | |||
14 | Flashing example for this keyboard: | ||
15 | |||
16 | make space_space/rev1:default:flash | ||
17 | |||
18 | See 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/space_space/rev1/rules.mk b/keyboards/space_space/rev1/rules.mk new file mode 100644 index 000000000..831de6dc5 --- /dev/null +++ b/keyboards/space_space/rev1/rules.mk | |||
@@ -0,0 +1,23 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||
23 | ENCODER_ENABLE = yes | ||
diff --git a/keyboards/space_space/space_space.c b/keyboards/space_space/rev1/space_space.c index 5fb853a01..5fb853a01 100644 --- a/keyboards/space_space/space_space.c +++ b/keyboards/space_space/rev1/space_space.c | |||
diff --git a/keyboards/space_space/rev1/space_space.h b/keyboards/space_space/rev1/space_space.h new file mode 100644 index 000000000..e56068ec4 --- /dev/null +++ b/keyboards/space_space/rev1/space_space.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/space_space/rev2/config.h b/keyboards/space_space/rev2/config.h new file mode 100644 index 000000000..66f8f6add --- /dev/null +++ b/keyboards/space_space/rev2/config.h | |||
@@ -0,0 +1,59 @@ | |||
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 | { D7, F7 } | ||
45 | #define ENCODERS_PAD_B \ | ||
46 | { B4, C7 } | ||
47 | |||
48 | #define ENCODER_RESOLUTION 3 | ||
49 | #define ENCODER_DIRECTION_FLIP | ||
50 | |||
51 | #define DEBOUNCE 5 | ||
52 | |||
53 | #define LOCKING_SUPPORT_ENABLE | ||
54 | |||
55 | #define RGB_DI_PIN F0 | ||
56 | #define RGBLED_NUM 4 | ||
57 | |||
58 | #define DRIVER_LED_TOTAL RGBLED_NUM | ||
59 | #define RGBLIGHT_DEFAULT_HUE 130 | ||
diff --git a/keyboards/space_space/rev2/info.json b/keyboards/space_space/rev2/info.json new file mode 100644 index 000000000..b0dcdc859 --- /dev/null +++ b/keyboards/space_space/rev2/info.json | |||
@@ -0,0 +1,92 @@ | |||
1 | { | ||
2 | "keyboard_name": "space_space", | ||
3 | "url": "", | ||
4 | "maintainer": "qpockets", | ||
5 | "width": 11.5, | ||
6 | "height": 4.35, | ||
7 | "layouts": { | ||
8 | "LAYOUT_default": { | ||
9 | "layout": [ | ||
10 | {"label":"Q", "x":0, "y":0}, | ||
11 | {"label":"W", "x":1, "y":0}, | ||
12 | {"label":"E", "x":2, "y":0}, | ||
13 | {"label":"R", "x":3, "y":0}, | ||
14 | {"label":"T", "x":4, "y":0}, | ||
15 | {"label":"Delete", "x":5, "y":0, "w":1.5}, | ||
16 | {"label":"Y", "x":6.5, "y":0}, | ||
17 | {"label":"U", "x":7.5, "y":0}, | ||
18 | {"label":"I", "x":8.5, "y":0}, | ||
19 | {"label":"O", "x":9.5, "y":0}, | ||
20 | {"label":"P", "x":10.5, "y":0}, | ||
21 | {"label":"A", "x":0, "y":1}, | ||
22 | {"label":"S", "x":1, "y":1}, | ||
23 | {"label":"D", "x":2, "y":1}, | ||
24 | {"label":"F", "x":3, "y":1}, | ||
25 | {"label":"G", "x":4, "y":1}, | ||
26 | {"label":"Tab", "x":5, "y":1, "w":1.5}, | ||
27 | {"label":"H", "x":6.5, "y":1}, | ||
28 | {"label":"J", "x":7.5, "y":1}, | ||
29 | {"label":"K", "x":8.5, "y":1}, | ||
30 | {"label":"L", "x":9.5, "y":1}, | ||
31 | {"label":"\"", "x":10.5, "y":1}, | ||
32 | {"label":"Z", "x":0, "y":2}, | ||
33 | {"label":"X", "x":1, "y":2}, | ||
34 | {"label":"C", "x":2, "y":2}, | ||
35 | {"label":"V", "x":3, "y":2}, | ||
36 | {"label":"B", "x":4, "y":2}, | ||
37 | {"label":"Shift", "x":5, "y":2, "w":1.5}, | ||
38 | {"label":"N", "x":6.5, "y":2}, | ||
39 | {"label":"M", "x":7.5, "y":2}, | ||
40 | {"label":"<", "x":8.5, "y":2}, | ||
41 | {"label":">", "x":9.5, "y":2}, | ||
42 | {"label":"?", "x":10.5, "y":2}, | ||
43 | {"label":"Ctrl", "x":1.25, "y":3.35, "w":1.25}, | ||
44 | {"label":"Fn", "x":2.5, "y":3.35}, | ||
45 | {"label":"Backspace", "x":3.5, "y":3.35, "w":2}, | ||
46 | {"label":"Space", "x":5.5, "y":3.35, "w":2.25}, | ||
47 | {"label":"Gui", "x":7.75, "y":3.35}, | ||
48 | {"label":"Alt", "x":8.75, "y":3.35, "w":1.25} | ||
49 | ] | ||
50 | }, | ||
51 | "LAYOUT_big_space": { | ||
52 | "layout": [ | ||
53 | {"label":"Q", "x":0, "y":0}, | ||
54 | {"label":"W", "x":1, "y":0}, | ||
55 | {"label":"E", "x":2, "y":0}, | ||
56 | {"label":"R", "x":3, "y":0}, | ||
57 | {"label":"T", "x":4, "y":0}, | ||
58 | {"label":"Delete", "x":5, "y":0, "w":1.5}, | ||
59 | {"label":"Y", "x":6.5, "y":0}, | ||
60 | {"label":"U", "x":7.5, "y":0}, | ||
61 | {"label":"I", "x":8.5, "y":0}, | ||
62 | {"label":"O", "x":9.5, "y":0}, | ||
63 | {"label":"P", "x":10.5, "y":0}, | ||
64 | {"label":"A", "x":0, "y":1}, | ||
65 | {"label":"S", "x":1, "y":1}, | ||
66 | {"label":"D", "x":2, "y":1}, | ||
67 | {"label":"F", "x":3, "y":1}, | ||
68 | {"label":"G", "x":4, "y":1}, | ||
69 | {"label":"Tab", "x":5, "y":1, "w":1.5}, | ||
70 | {"label":"H", "x":6.5, "y":1}, | ||
71 | {"label":"J", "x":7.5, "y":1}, | ||
72 | {"label":"K", "x":8.5, "y":1}, | ||
73 | {"label":"L", "x":9.5, "y":1}, | ||
74 | {"label":"\"", "x":10.5, "y":1}, | ||
75 | {"label":"Z", "x":0, "y":2}, | ||
76 | {"label":"X", "x":1, "y":2}, | ||
77 | {"label":"C", "x":2, "y":2}, | ||
78 | {"label":"V", "x":3, "y":2}, | ||
79 | {"label":"B", "x":4, "y":2}, | ||
80 | {"label":"Shift", "x":5, "y":2, "w":1.5}, | ||
81 | {"label":"N", "x":6.5, "y":2}, | ||
82 | {"label":"M", "x":7.5, "y":2}, | ||
83 | {"label":"<", "x":8.5, "y":2}, | ||
84 | {"label":">", "x":9.5, "y":2}, | ||
85 | {"label":"?", "x":10.5, "y":2}, | ||
86 | {"label":"Ctrl", "x":1.25, "y":3.35, "w":1.25}, | ||
87 | {"label":"Space", "x":2.5, "y":3.35, "w":6.25}, | ||
88 | {"label":"Alt", "x":8.75, "y":3.35, "w":1.25} | ||
89 | ] | ||
90 | } | ||
91 | } | ||
92 | } | ||
diff --git a/keyboards/space_space/rev2/keymaps/big_space/config.h b/keyboards/space_space/rev2/keymaps/big_space/config.h new file mode 100644 index 000000000..ffc2124e1 --- /dev/null +++ b/keyboards/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/space_space/rev2/keymaps/big_space/keymap.c b/keyboards/space_space/rev2/keymaps/big_space/keymap.c new file mode 100644 index 000000000..a272c001b --- /dev/null +++ b/keyboards/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 | |||
19 | enum layers{ | ||
20 | _BASE, | ||
21 | _SYM, | ||
22 | _NUM, | ||
23 | _NAV | ||
24 | }; | ||
25 | |||
26 | enum 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 | |||
43 | const 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 | ||
68 | const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END}; | ||
69 | const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END}; | ||
70 | const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END}; | ||
71 | const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END}; | ||
72 | const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END}; | ||
73 | |||
74 | combo_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/space_space/rev2/keymaps/big_space/rules.mk b/keyboards/space_space/rev2/keymaps/big_space/rules.mk new file mode 100644 index 000000000..ff681299e --- /dev/null +++ b/keyboards/space_space/rev2/keymaps/big_space/rules.mk | |||
@@ -0,0 +1 @@ | |||
COMBO_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/space_space/rev2/keymaps/default/config.h b/keyboards/space_space/rev2/keymaps/default/config.h new file mode 100644 index 000000000..0b0e89fa1 --- /dev/null +++ b/keyboards/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/space_space/rev2/keymaps/default/keymap.c b/keyboards/space_space/rev2/keymaps/default/keymap.c new file mode 100644 index 000000000..64f34c829 --- /dev/null +++ b/keyboards/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 | |||
19 | enum layers{ | ||
20 | _BASE, | ||
21 | _SYM, | ||
22 | _NAV | ||
23 | }; | ||
24 | |||
25 | enum 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 | |||
37 | const 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 | ||
64 | const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END}; | ||
65 | const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END}; | ||
66 | const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END}; | ||
67 | const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END}; | ||
68 | const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END}; | ||
69 | |||
70 | combo_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/space_space/rev2/keymaps/default/rules.mk b/keyboards/space_space/rev2/keymaps/default/rules.mk new file mode 100644 index 000000000..ab1e43818 --- /dev/null +++ b/keyboards/space_space/rev2/keymaps/default/rules.mk | |||
@@ -0,0 +1 @@ | |||
COMBO_ENABLE = yes | |||
diff --git a/keyboards/space_space/rev2/keymaps/qpockets/config.h b/keyboards/space_space/rev2/keymaps/qpockets/config.h new file mode 100644 index 000000000..bf8c47eb3 --- /dev/null +++ b/keyboards/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/space_space/rev2/keymaps/qpockets/keymap.c b/keyboards/space_space/rev2/keymaps/qpockets/keymap.c new file mode 100644 index 000000000..986e43595 --- /dev/null +++ b/keyboards/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 | |||
19 | enum layers{ | ||
20 | _BASE, | ||
21 | _SYM, | ||
22 | _NAV | ||
23 | }; | ||
24 | |||
25 | enum 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 | |||
37 | const 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 | ||
62 | const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END}; | ||
63 | const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END}; | ||
64 | const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END}; | ||
65 | const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END}; | ||
66 | const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END}; | ||
67 | |||
68 | combo_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/space_space/rev2/keymaps/qpockets/rules.mk b/keyboards/space_space/rev2/keymaps/qpockets/rules.mk new file mode 100644 index 000000000..ff681299e --- /dev/null +++ b/keyboards/space_space/rev2/keymaps/qpockets/rules.mk | |||
@@ -0,0 +1 @@ | |||
COMBO_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/space_space/rev2/readme.md b/keyboards/space_space/rev2/readme.md new file mode 100644 index 000000000..d8391a21a --- /dev/null +++ b/keyboards/space_space/rev2/readme.md | |||
@@ -0,0 +1,18 @@ | |||
1 | # space_space | ||
2 | |||
3 |  | ||
4 | |||
5 | Give 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 | |||
10 | Make example for this keyboard (after setting up your build environment): | ||
11 | |||
12 | make space_space/rev2:default | ||
13 | |||
14 | Flashing example for this keyboard: | ||
15 | |||
16 | make space_space/rev2:default:flash | ||
17 | |||
18 | See 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/space_space/rev2/rev2.c b/keyboards/space_space/rev2/rev2.c new file mode 100644 index 000000000..07b93b36a --- /dev/null +++ b/keyboards/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 | |||
19 | bool 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/space_space/rev2/rev2.h b/keyboards/space_space/rev2/rev2.h new file mode 100644 index 000000000..99362b900 --- /dev/null +++ b/keyboards/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/space_space/rev2/rules.mk b/keyboards/space_space/rev2/rules.mk new file mode 100644 index 000000000..72a5deaf1 --- /dev/null +++ b/keyboards/space_space/rev2/rules.mk | |||
@@ -0,0 +1,23 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||
23 | ENCODER_ENABLE = yes | ||
diff --git a/keyboards/space_space/rules.mk b/keyboards/space_space/rules.mk index 831de6dc5..2ca04be44 100644 --- a/keyboards/space_space/rules.mk +++ b/keyboards/space_space/rules.mk | |||
@@ -1,23 +1 @@ | |||
1 | # MCU name | DEFAULT_FOLDER = space_space/rev2 | |
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||
23 | ENCODER_ENABLE = yes | ||
diff --git a/keyboards/space_space/space_space.h b/keyboards/space_space/space_space.h deleted file mode 100644 index 25e9a083d..000000000 --- a/keyboards/space_space/space_space.h +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
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 | { \ | ||
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 | |||