aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqpockets <69164255+qpockets@users.noreply.github.com>2021-09-21 17:12:55 -0400
committerGitHub <noreply@github.com>2021-09-21 14:12:55 -0700
commitc8a58691146495e5506a355d6fb6d65edbc78e79 (patch)
tree472c4ef8426029fed09ee2ddc3a9c372a2ec1c2f
parent376968ade4e102f7a526252599755af4c16dd525 (diff)
downloadqmk_firmware-c8a58691146495e5506a355d6fb6d65edbc78e79.tar.gz
qmk_firmware-c8a58691146495e5506a355d6fb6d65edbc78e79.zip
[Keyboard] add synapse pcb (#14428)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/synapse/config.h59
-rw-r--r--keyboards/synapse/info.json96
-rw-r--r--keyboards/synapse/keymaps/7u_space/config.h27
-rw-r--r--keyboards/synapse/keymaps/7u_space/keymap.c77
-rw-r--r--keyboards/synapse/keymaps/7u_space/rules.mk1
-rw-r--r--keyboards/synapse/keymaps/default/config.h27
-rw-r--r--keyboards/synapse/keymaps/default/keymap.c77
-rw-r--r--keyboards/synapse/keymaps/default/rules.mk1
-rw-r--r--keyboards/synapse/readme.md27
-rw-r--r--keyboards/synapse/rules.mk22
-rw-r--r--keyboards/synapse/synapse.c34
-rw-r--r--keyboards/synapse/synapse.h48
12 files changed, 496 insertions, 0 deletions
diff --git a/keyboards/synapse/config.h b/keyboards/synapse/config.h
new file mode 100644
index 000000000..82a0aadea
--- /dev/null
+++ b/keyboards/synapse/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 0x5359
24#define DEVICE_VER 0x0001
25#define MANUFACTURER drmmr
26#define PRODUCT synapse
27
28/* key matrix size */
29#define MATRIX_ROWS 4
30#define MATRIX_COLS 12
31
32#define MATRIX_ROW_PINS \
33 { E6, B0, F4, F1 }
34#define MATRIX_COL_PINS \
35 { F0, D4, F5, B1, B2, B3, B7, D0, D1, D2, D3, B6 }
36
37#define UNUSED_PINS
38
39/* COL2ROW, ROW2COL*/
40#define DIODE_DIRECTION COL2ROW
41
42/* ROTARY ENCODERS */
43#define ENCODERS_PAD_A \
44 { D6, C6 }
45#define ENCODERS_PAD_B \
46 { D7, C7 }
47
48#define ENCODER_RESOLUTION 4
49#define ENCODER_DIRECTION_FLIP
50
51#define DEBOUNCE 5
52
53#define LOCKING_SUPPORT_ENABLE
54
55//#define RGB_DI_PIN D5
56//#define RGBLED_NUM 4
57
58//#define DRIVER_LED_TOTAL RGBLED_NUM
59//#define RGBLIGHT_DEFAULT_HUE 130
diff --git a/keyboards/synapse/info.json b/keyboards/synapse/info.json
new file mode 100644
index 000000000..c7b861125
--- /dev/null
+++ b/keyboards/synapse/info.json
@@ -0,0 +1,96 @@
1{
2 "keyboard_name": "synapse",
3 "url": "",
4 "maintainer": "qpockets",
5 "layouts": {
6 "LAYOUT_default": {
7 "layout": [
8 {"x":0, "y":0},
9 {"x":1, "y":0},
10 {"x":2, "y":0},
11 {"x":3, "y":0},
12 {"x":4, "y":0},
13 {"x":5, "y":0},
14 {"x":6, "y":0},
15 {"x":7, "y":0},
16 {"x":8, "y":0},
17 {"x":9, "y":0},
18 {"x":10, "y":0},
19 {"x":11, "y":0},
20 {"x":0, "y":1, "w":1.25},
21 {"x":1.25, "y":1},
22 {"x":2.25, "y":1},
23 {"x":3.25, "y":1},
24 {"x":4.25, "y":1},
25 {"x":5.25, "y":1},
26 {"x":6.25, "y":1},
27 {"x":7.25, "y":1},
28 {"x":8.25, "y":1},
29 {"x":9.25, "y":1},
30 {"x":10.25, "y":1, "w":1.75},
31 {"x":0, "y":2, "w":1.75},
32 {"x":1.75, "y":2},
33 {"x":2.75, "y":2},
34 {"x":3.75, "y":2},
35 {"x":4.75, "y":2},
36 {"x":5.75, "y":2},
37 {"x":6.75, "y":2},
38 {"x":7.75, "y":2},
39 {"x":8.75, "y":2},
40 {"x":9.75, "y":2},
41 {"x":10.75, "y":2, "w":1.25},
42 {"x":0, "y":3},
43 {"x":1, "y":3},
44 {"x":2, "y":3},
45 {"x":3, "y":3, "w":3},
46 {"x":6, "y":3, "w":3},
47 {"x":9, "y":3},
48 {"x":10, "y":3},
49 {"x":11, "y":3}
50 ]
51 },
52 "LAYOUT_7u_space": {
53 "layout": [
54 {"x":0, "y":0},
55 {"x":1, "y":0},
56 {"x":2, "y":0},
57 {"x":3, "y":0},
58 {"x":4, "y":0},
59 {"x":5, "y":0},
60 {"x":6, "y":0},
61 {"x":7, "y":0},
62 {"x":8, "y":0},
63 {"x":9, "y":0},
64 {"x":10, "y":0},
65 {"x":11, "y":0},
66 {"x":0, "y":1, "w":1.25},
67 {"x":1.25, "y":1},
68 {"x":2.25, "y":1},
69 {"x":3.25, "y":1},
70 {"x":4.25, "y":1},
71 {"x":5.25, "y":1},
72 {"x":6.25, "y":1},
73 {"x":7.25, "y":1},
74 {"x":8.25, "y":1},
75 {"x":9.25, "y":1},
76 {"x":10.25, "y":1, "w":1.75},
77 {"x":0, "y":2, "w":1.75},
78 {"x":1.75, "y":2},
79 {"x":2.75, "y":2},
80 {"x":3.75, "y":2},
81 {"x":4.75, "y":2},
82 {"x":5.75, "y":2},
83 {"x":6.75, "y":2},
84 {"x":7.75, "y":2},
85 {"x":8.75, "y":2},
86 {"x":9.75, "y":2},
87 {"x":10.75, "y":2, "w":1.25},
88 {"x":0, "y":3},
89 {"x":1, "y":3, "w":1.5},
90 {"x":2.5, "y":3, "w":7},
91 {"x":9.5, "y":3, "w":1.5},
92 {"x":11, "y":3}
93 ]
94 }
95 }
96}
diff --git a/keyboards/synapse/keymaps/7u_space/config.h b/keyboards/synapse/keymaps/7u_space/config.h
new file mode 100644
index 000000000..0b0e89fa1
--- /dev/null
+++ b/keyboards/synapse/keymaps/7u_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 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/synapse/keymaps/7u_space/keymap.c b/keyboards/synapse/keymaps/7u_space/keymap.c
new file mode 100644
index 000000000..00ec4b30c
--- /dev/null
+++ b/keyboards/synapse/keymaps/7u_space/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_CTL LT(_NAV, KC_LCTL)
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_7u_space(
39 KC_DEL, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
40 KC_TAB, KC_A, KC_S, KC_D, KC_SF, KC_G, KC_H, KC_SJ, KC_K, KC_L, KC_QUOT,
41 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
42 KC_LGUI, KC_DN_CTL, KC_UP_SPC, KC_RALT, KC_RGUI
43 ),
44
45 [_SYM] = LAYOUT_7u_space(
46 KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS,
47 KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
48 KC_TRNS, KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
49 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
50 ),
51
52 [_NAV] = LAYOUT_7u_space(
53 RESET, KC_TRNS, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_F1, KC_F2, KC_F3, KC_F4, KC_BSPC, KC_TRNS,
54 KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_F4, KC_F5, KC_F6, KC_F7, KC_TAB,
55 KC_LCAP, KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_F9, KC_F10, KC_F11, KC_F12, KC_ENT,
56 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/synapse/keymaps/7u_space/rules.mk b/keyboards/synapse/keymaps/7u_space/rules.mk
new file mode 100644
index 000000000..ab1e43818
--- /dev/null
+++ b/keyboards/synapse/keymaps/7u_space/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes
diff --git a/keyboards/synapse/keymaps/default/config.h b/keyboards/synapse/keymaps/default/config.h
new file mode 100644
index 000000000..0b0e89fa1
--- /dev/null
+++ b/keyboards/synapse/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/synapse/keymaps/default/keymap.c b/keyboards/synapse/keymaps/default/keymap.c
new file mode 100644
index 000000000..85ca4c628
--- /dev/null
+++ b/keyboards/synapse/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_DEL, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
40 KC_TAB, KC_A, KC_S, KC_D, KC_SF, KC_G, KC_H, KC_SJ, KC_K, KC_L, KC_QUOT,
41 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
42 KC_LALT, KC_LGUI, KC_LCTL, KC_DN_BSPC, KC_UP_SPC, KC_RALT, KC_RGUI, KC_RCTL
43 ),
44
45 [_SYM] = LAYOUT_default(
46 KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS,
47 KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
48 KC_TRNS, KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
49 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
50 ),
51
52 [_NAV] = LAYOUT_default(
53 RESET, KC_TRNS, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_F1, KC_F2, KC_F3, KC_F4, KC_BSPC, KC_TRNS,
54 KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_F4, KC_F5, KC_F6, KC_F7, KC_TAB,
55 KC_LCAP, KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_F9, KC_F10, KC_F11, KC_F12, KC_ENT,
56 KC_TRNS, KC_TRNS, 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/synapse/keymaps/default/rules.mk b/keyboards/synapse/keymaps/default/rules.mk
new file mode 100644
index 000000000..ab1e43818
--- /dev/null
+++ b/keyboards/synapse/keymaps/default/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes
diff --git a/keyboards/synapse/readme.md b/keyboards/synapse/readme.md
new file mode 100644
index 000000000..1e4642881
--- /dev/null
+++ b/keyboards/synapse/readme.md
@@ -0,0 +1,27 @@
1# synapse
2
3![synapse](https://i.imgur.com/OQNNPBhh.jpg)
4
5Stagger PCB for Cervello!
6
7* Keyboard Maintainer: https://github.com/qpockets
8* Hardware Availability: [P3D Store](https://p3dstore.com/products/cervello-acrylic-keyboard-case-and-pcb-group-buy?_pos=4&_sid=fd078da46&_ss=r&variant=40398412677304) Group Buy
9
10Make example for this keyboard (after setting up your build environment):
11
12 make synapse:default
13
14Flashing example for this keyboard:
15
16 make synapse: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).
19
20## Bootloader
21
22Enter the bootloader in 3 ways:
23
24* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
25* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
26* **Keycode in layout**: Press the key mapped to `RESET` if it is available
27*
diff --git a/keyboards/synapse/rules.mk b/keyboards/synapse/rules.mk
new file mode 100644
index 000000000..c1ecc763c
--- /dev/null
+++ b/keyboards/synapse/rules.mk
@@ -0,0 +1,22 @@
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
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_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
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21AUDIO_ENABLE = no # Audio output
22ENCODER_ENABLE = yes
diff --git a/keyboards/synapse/synapse.c b/keyboards/synapse/synapse.c
new file mode 100644
index 000000000..ac9c50ceb
--- /dev/null
+++ b/keyboards/synapse/synapse.c
@@ -0,0 +1,34 @@
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#include "synapse.h"
17
18bool encoder_update_kb(uint8_t index, bool clockwise) {
19 if (!encoder_update_user(index, clockwise)) { return false; }
20 if (index == 1) { /* left encoder*/
21 if (clockwise){
22 tap_code(KC_WH_U);
23 } else {
24 tap_code(KC_WH_D);
25 }
26 } else if (index == 0) { /* right encoder */
27 if (clockwise){
28 tap_code(KC_VOLU);
29 } else {
30 tap_code(KC_VOLD);
31 }
32 }
33 return true;
34}
diff --git a/keyboards/synapse/synapse.h b/keyboards/synapse/synapse.h
new file mode 100644
index 000000000..a126e450e
--- /dev/null
+++ b/keyboards/synapse/synapse.h
@@ -0,0 +1,48 @@
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, K60, \
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 K30, K31, K32, K33, K36, K38, K39, K53 \
28) \
29{ \
30 {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K50, K60}, \
31 {K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K51, XXX}, \
32 {K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K52, XXX}, \
33 {K30, K31, K32, K33, XXX, XXX, K36, XXX, K38, K39, K53, XXX} \
34} \
35
36#define LAYOUT_7u_space( \
37 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K50, K60, \
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 K30, K31, K33, K39, K53 \
41) \
42{ \
43 {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K50, K60}, \
44 {K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K51, XXX}, \
45 {K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K52, XXX}, \
46 {K30, K31, XXX, K33, XXX, XXX, XXX, XXX, XXX, K39, K53, XXX} \
47}
48