summaryrefslogtreecommitdiff
path: root/keyboards/strech
diff options
context:
space:
mode:
authorSergey Fedorov <oni.strech@gmail.com>2023-10-03 16:27:00 +0900
committerGitHub <noreply@github.com>2023-10-03 01:27:00 -0600
commitf33881b1da15955b43c463611f7a24390d4acd5d (patch)
treec8d23f25d6c2d87aae64357fe95a1551473f445e /keyboards/strech
parent997a6747ee83c87de92d9444e2bc57c981dbf260 (diff)
Add Soulstone keyboard (#22093)
Diffstat (limited to 'keyboards/strech')
-rw-r--r--keyboards/strech/soulstone/config.h24
-rw-r--r--keyboards/strech/soulstone/info.json84
-rw-r--r--keyboards/strech/soulstone/keymaps/default/keymap.c44
-rw-r--r--keyboards/strech/soulstone/keymaps/via/keymap.c44
-rw-r--r--keyboards/strech/soulstone/keymaps/via/rules.mk1
-rw-r--r--keyboards/strech/soulstone/readme.md30
-rw-r--r--keyboards/strech/soulstone/rules.mk1
-rw-r--r--keyboards/strech/soulstone/soulstone.c30
8 files changed, 258 insertions, 0 deletions
diff --git a/keyboards/strech/soulstone/config.h b/keyboards/strech/soulstone/config.h
new file mode 100644
index 0000000000..425546d77e
--- /dev/null
+++ b/keyboards/strech/soulstone/config.h
@@ -0,0 +1,24 @@
1/* Copyright 2023 Strech
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/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
20#define LOCKING_SUPPORT_ENABLE
21/* Locking resynchronize hack */
22#define LOCKING_RESYNC_ENABLE
23
24#define LAYER_INDICATOR_LED_PIN B3
diff --git a/keyboards/strech/soulstone/info.json b/keyboards/strech/soulstone/info.json
new file mode 100644
index 0000000000..53037d1460
--- /dev/null
+++ b/keyboards/strech/soulstone/info.json
@@ -0,0 +1,84 @@
1{
2 "keyboard_name": "Soulstone",
3 "maintainer": "Strech",
4 "manufacturer": "Strech",
5 "usb": {
6 "vid": "0xB030",
7 "pid": "0x0001",
8 "device_version": "1.0.0"
9 },
10 "processor": "atmega32u4",
11 "bootloader": "atmel-dfu",
12 "features": {
13 "bootmagic": true,
14 "mousekey": true,
15 "extrakey": true,
16 "console": false,
17 "command": false,
18 "nkro": true
19 },
20 "diode_direction": "COL2ROW",
21 "matrix_pins": {
22 "cols": ["B7", "F1", "B0", "F4", "E6", "F0", "D5", "D3", "D2", "D1", "B4", "D7", "D6"],
23 "rows": ["D0", "D4", "B5", "F5"]
24 },
25 "indicators": {
26 "caps_lock": "B1",
27 "num_lock": "B2"
28 },
29 "dynamic_keymap": {
30 "layer_count": 6
31 },
32 "layouts": {
33 "LAYOUT": {
34 "layout": [
35 {"matrix": [0, 0], "x": 0, "y": 0, "label": "Esc"},
36 {"matrix": [0, 1], "x": 1, "y": 0, "label": "Q"},
37 {"matrix": [0, 2], "x": 2, "y": 0, "label": "W"},
38 {"matrix": [0, 3], "x": 3, "y": 0, "label": "E"},
39 {"matrix": [0, 4], "x": 4, "y": 0, "label": "R"},
40 {"matrix": [0, 5], "x": 5, "y": 0, "label": "T"},
41 {"matrix": [0, 6], "x": 7, "y": 0, "label": "Y"},
42 {"matrix": [0, 7], "x": 8, "y": 0, "label": "U"},
43 {"matrix": [0, 8], "x": 9, "y": 0, "label": "I"},
44 {"matrix": [0, 9], "x": 10, "y": 0, "label": "O"},
45 {"matrix": [0, 10], "x": 11, "y": 0, "label": "P"},
46 {"matrix": [0, 11], "x": 12, "y": 0, "label": "Del"},
47 {"matrix": [0, 12], "x": 13, "y": 0, "label": "Bspc"},
48 {"matrix": [1, 0], "x": 0, "y": 1, "w": 1.25, "label": "Tab"},
49 {"matrix": [1, 1], "x": 1.25, "y": 1, "label": "A"},
50 {"matrix": [1, 2], "x": 2.25, "y": 1, "label": "S"},
51 {"matrix": [1, 3], "x": 3.25, "y": 1, "label": "D"},
52 {"matrix": [1, 4], "x": 4.25, "y": 1, "label": "F"},
53 {"matrix": [1, 5], "x": 5.25, "y": 1, "label": "G"},
54 {"matrix": [1, 6], "x": 7.25, "y": 1, "label": "H"},
55 {"matrix": [1, 7], "x": 8.25, "y": 1, "label": "J"},
56 {"matrix": [1, 8], "x": 9.25, "y": 1, "label": "K"},
57 {"matrix": [1, 9], "x": 10.25, "y": 1, "label": "L"},
58 {"matrix": [1, 10], "x": 11.25, "y": 1, "label": ";"},
59 {"matrix": [1, 12], "x": 12.25, "y": 1, "w": 1.5, "label": "Enter"},
60 {"matrix": [2, 0], "x": 0, "y": 2, "w": 1.75, "label": "L Shift"},
61 {"matrix": [2, 1], "x": 1.75, "y": 2, "label": "Z"},
62 {"matrix": [2, 2], "x": 2.75, "y": 2, "label": "X"},
63 {"matrix": [2, 3], "x": 3.75, "y": 2, "label": "C"},
64 {"matrix": [2, 4], "x": 4.75, "y": 2, "label": "V"},
65 {"matrix": [2, 5], "x": 5.75, "y": 2, "label": "B"},
66 {"matrix": [2, 6], "x": 6.75, "y": 2, "label": "MO(3)"},
67 {"matrix": [2, 7], "x": 7.75, "y": 2, "label": "N"},
68 {"matrix": [2, 8], "x": 8.75, "y": 2, "label": "M"},
69 {"matrix": [2, 9], "x": 9.75, "y": 2, "label": ","},
70 {"matrix": [2, 10], "x": 10.75, "y": 2, "label": "."},
71 {"matrix": [2, 11], "x": 11.75, "y": 2, "label": "/"},
72 {"matrix": [2, 12], "x": 12.75, "y": 2, "w": 1.25, "label": "R Shift"},
73 {"matrix": [3, 0], "x": 0, "y": 3, "w": 1.25, "label": "L Ctrl"},
74 {"matrix": [3, 1], "x": 1.25, "y": 3, "w": 1.25, "label": "L Alt"},
75 {"matrix": [3, 3], "x": 3.50, "y": 3, "w": 1.25, "label": "MO(2)"},
76 {"matrix": [3, 4], "x": 4.75, "y": 3, "w": 2, "label": "MO(1)"},
77 {"matrix": [3, 6], "x": 6.75, "y": 3, "w": 2.25, "label": "Space"},
78 {"matrix": [3, 8], "x": 9, "y": 3, "w": 1.25, "label": "R Alt"},
79 {"matrix": [3, 11], "x": 11.50, "y": 3, "w": 1.25, "label": "R GUI"},
80 {"matrix": [3, 12], "x": 12.75, "y": 3, "w": 1.25, "label": "R Ctrl"}
81 ]
82 }
83 }
84}
diff --git a/keyboards/strech/soulstone/keymaps/default/keymap.c b/keyboards/strech/soulstone/keymaps/default/keymap.c
new file mode 100644
index 0000000000..7dc655b619
--- /dev/null
+++ b/keyboards/strech/soulstone/keymaps/default/keymap.c
@@ -0,0 +1,44 @@
1/* Copyright 2023 Strech
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include QMK_KEYBOARD_H
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] = LAYOUT(
21 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, KC_BSPC,
22 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_ENT,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, MO(3), KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
24 KC_LCTL, KC_LALT, MO(2), MO(1), KC_SPC, KC_RALT, KC_RGUI, KC_RCTL
25 ),
26 [1] = LAYOUT(
27 KC_GRV, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU,
28 KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_SCLN, KC_BSLS,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
30 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
31 ),
32 [2] = LAYOUT(
33 KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL,
34 KC_LNUM, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_P6, KC_LBRC, KC_RBRC,
35 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_TRNS, KC_TRNS, KC_TRNS,
36 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PENT, KC_PDOT, KC_TRNS, KC_TRNS
37 ),
38 [3] = LAYOUT(
39 KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
40 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
42 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
43 )
44};
diff --git a/keyboards/strech/soulstone/keymaps/via/keymap.c b/keyboards/strech/soulstone/keymaps/via/keymap.c
new file mode 100644
index 0000000000..7dc655b619
--- /dev/null
+++ b/keyboards/strech/soulstone/keymaps/via/keymap.c
@@ -0,0 +1,44 @@
1/* Copyright 2023 Strech
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include QMK_KEYBOARD_H
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] = LAYOUT(
21 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, KC_BSPC,
22 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_ENT,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, MO(3), KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
24 KC_LCTL, KC_LALT, MO(2), MO(1), KC_SPC, KC_RALT, KC_RGUI, KC_RCTL
25 ),
26 [1] = LAYOUT(
27 KC_GRV, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU,
28 KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_SCLN, KC_BSLS,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
30 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
31 ),
32 [2] = LAYOUT(
33 KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL,
34 KC_LNUM, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_P6, KC_LBRC, KC_RBRC,
35 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_TRNS, KC_TRNS, KC_TRNS,
36 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PENT, KC_PDOT, KC_TRNS, KC_TRNS
37 ),
38 [3] = LAYOUT(
39 KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
40 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
42 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
43 )
44};
diff --git a/keyboards/strech/soulstone/keymaps/via/rules.mk b/keyboards/strech/soulstone/keymaps/via/rules.mk
new file mode 100644
index 0000000000..1e5b99807c
--- /dev/null
+++ b/keyboards/strech/soulstone/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/strech/soulstone/readme.md b/keyboards/strech/soulstone/readme.md
new file mode 100644
index 0000000000..07c792f0eb
--- /dev/null
+++ b/keyboards/strech/soulstone/readme.md
@@ -0,0 +1,30 @@
1# Soulstone
2
3![Soulstone](https://i.imgur.com/aQBsgZ9h.jpg)
4
5A hotswap PCB inspired by an elegant [prime_e](https://www.primekb.com/products/prime_e-rev-2-pcb),
645% ergo keyboard. It is compatible with `rev2` (RGB and non-RGB) which makes it
7fit to any `rev2` compatible case.
8
9* Keyboard Maintainer: [Strech](https://github.com/Strech)
10* Hardware Supported: Soulstone
11* Hardware Availability: Coming soon
12
13Make example for this keyboard (after setting up your build environment):
14
15 make strech/soulstone:default
16
17Flashing example for this keyboard:
18
19 make strech/soulstone:default:flash
20
21See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and
22the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information.
23Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
24
25## Bootloader
26
27Enter the bootloader using one of the following methods:
28
29* Tap the Reset switch mounted on the PCB
30* Hold down the key at (0,0) in the matrix (usually the top left key or `Escape`) and plug in the keyboard
diff --git a/keyboards/strech/soulstone/rules.mk b/keyboards/strech/soulstone/rules.mk
new file mode 100644
index 0000000000..6e7633bfe0
--- /dev/null
+++ b/keyboards/strech/soulstone/rules.mk
@@ -0,0 +1 @@
# This file intentionally left blank
diff --git a/keyboards/strech/soulstone/soulstone.c b/keyboards/strech/soulstone/soulstone.c
new file mode 100644
index 0000000000..4a951aff9d
--- /dev/null
+++ b/keyboards/strech/soulstone/soulstone.c
@@ -0,0 +1,30 @@
1/* Copyright 2023 Strech
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 "quantum.h"
18
19// Prepare layer indicator LED
20void keyboard_post_init_kb(void) {
21 setPinOutput(LAYER_INDICATOR_LED_PIN);
22 writePinLow(LAYER_INDICATOR_LED_PIN);
23 keyboard_post_init_user();
24}
25
26// Function for layer indicator LED
27layer_state_t layer_state_set_kb(layer_state_t state) {
28 writePin(LAYER_INDICATOR_LED_PIN, !layer_state_cmp(state, 0));
29 return layer_state_set_user(state);
30}