aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/soy20/config.h55
-rw-r--r--keyboards/soy20/info.json33
-rw-r--r--keyboards/soy20/keymaps/default/keymap.c19
-rw-r--r--keyboards/soy20/keymaps/via/keymap.c33
-rw-r--r--keyboards/soy20/keymaps/via/rules.mk2
-rw-r--r--keyboards/soy20/readme.md13
-rw-r--r--keyboards/soy20/rules.mk24
-rw-r--r--keyboards/soy20/soy20.c18
-rw-r--r--keyboards/soy20/soy20.h33
9 files changed, 230 insertions, 0 deletions
diff --git a/keyboards/soy20/config.h b/keyboards/soy20/config.h
new file mode 100644
index 000000000..932b129f8
--- /dev/null
+++ b/keyboards/soy20/config.h
@@ -0,0 +1,55 @@
1/* Soy20 PCB}}
2Copyright (C) {{ 2020 }} {{ Drewkeys }}
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 3 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#pragma once
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0x4452 // "DR" short for DrewKeys
23#define PRODUCT_ID 0x534f // "SO" short for Soy
24#define DEVICE_VER 0x0001
25#define MANUFACTURER drewkeys
26#define PRODUCT soy20
27
28/* key matrix size */
29#define MATRIX_ROWS 5
30#define MATRIX_COLS 4
31
32/* key matrix pins */
33#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4 }
34#define MATRIX_COL_PINS { B5, B6, B7, C7 }
35#define UNUSED_PINS
36
37/* COL2ROW or ROW2COL */
38#define DIODE_DIRECTION COL2ROW
39
40/* Set 0 if debouncing isn't needed */
41#define DEBOUNCE 5
42
43/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
44#define LOCKING_SUPPORT_ENABLE
45
46/* Locking resynchronize hack */
47#define LOCKING_RESYNC_ENABLE
48
49#ifdef RGB_DI_PIN
50#define RGBLIGHT_ANIMATIONS
51#define RGBLED_NUM 0
52#define RGBLIGHT_HUE_STEP 8
53#define RGBLIGHT_SAT_STEP 8
54#define RGBLIGHT_VAL_STEP 8
55#endif
diff --git a/keyboards/soy20/info.json b/keyboards/soy20/info.json
new file mode 100644
index 000000000..ea1ab2e7f
--- /dev/null
+++ b/keyboards/soy20/info.json
@@ -0,0 +1,33 @@
1{
2 "keyboard_name": "Soy20",
3 "url": "",
4 "maintainer": "twholt",
5 "width": 4,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_ortho_5x4": {
9 "layout": [
10 {"label":"K00 (B0,B5)", "x":0, "y":0},
11 {"label":"K01 (B0,B6)", "x":1, "y":0},
12 {"label":"K02 (B0,B7)", "x":2, "y":0},
13 {"label":"K03 (B0,C7)", "x":3, "y":0},
14 {"label":"K10 (B1,B5)", "x":0, "y":1},
15 {"label":"K11 (B1,B6)", "x":1, "y":1},
16 {"label":"K12 (B1,B7)", "x":2, "y":1},
17 {"label":"K13 (B1,C7)", "x":3, "y":1},
18 {"label":"K20 (B2,B5)", "x":0, "y":2},
19 {"label":"K21 (B2,B6)", "x":1, "y":2},
20 {"label":"K22 (B2,B7)", "x":2, "y":2},
21 {"label":"K23 (B2,C7)", "x":3, "y":2},
22 {"label":"K30 (B3,B5)", "x":0, "y":3},
23 {"label":"K31 (B3,B6)", "x":1, "y":3},
24 {"label":"K32 (B3,B7)", "x":2, "y":3},
25 {"label":"K33 (B3,C7)", "x":3, "y":3},
26 {"label":"K40 (B4,B5)", "x":0, "y":4},
27 {"label":"K41 (B4,B6)", "x":1, "y":4},
28 {"label":"K42 (B4,B7)", "x":2, "y":4},
29 {"label":"K43 (B4,C7)", "x":3, "y":4}
30 ]
31 }
32 }
33}
diff --git a/keyboards/soy20/keymaps/default/keymap.c b/keyboards/soy20/keymaps/default/keymap.c
new file mode 100644
index 000000000..0ab505eeb
--- /dev/null
+++ b/keyboards/soy20/keymaps/default/keymap.c
@@ -0,0 +1,19 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5 [0] = LAYOUT_ortho_5x4(
6 KC_PMNS, KC_PAST, KC_PSLS, MO(1),
7 KC_PPLS, KC_P9, KC_P8, KC_P7,
8 KC_TAB, KC_P5, KC_P6, KC_P4,
9 KC_PENT, KC_P3, KC_P2, KC_P1,
10 KC_DEL, KC_SCLN, KC_PDOT, KC_P0),
11
12 [1] = LAYOUT_ortho_5x4(
13 KC_NLCK, KC_PSCR, KC_TRNS, KC_TRNS,
14 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
15 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
16 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
17 KC_TRNS, KC_TRNS, KC_TRNS, RESET),
18
19};
diff --git a/keyboards/soy20/keymaps/via/keymap.c b/keyboards/soy20/keymaps/via/keymap.c
new file mode 100644
index 000000000..fde63da13
--- /dev/null
+++ b/keyboards/soy20/keymaps/via/keymap.c
@@ -0,0 +1,33 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5 [0] = LAYOUT_ortho_5x4(
6 KC_PMNS, KC_PAST, KC_PSLS, MO(1),
7 KC_PPLS, KC_P9, KC_P8, KC_P7,
8 KC_TAB, KC_P5, KC_P6, KC_P4,
9 KC_PENT, KC_P3, KC_P2, KC_P1,
10 KC_DEL, KC_SCLN, KC_PDOT, KC_P0),
11
12 [1] = LAYOUT_ortho_5x4(
13 KC_NLCK, KC_PSCR, KC_TRNS, KC_TRNS,
14 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
15 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
16 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
17 KC_TRNS, KC_TRNS, KC_TRNS, RESET),
18
19 [2] = LAYOUT_ortho_5x4(
20 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
21 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
22 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
23 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
24 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
25
26 [3] = LAYOUT_ortho_5x4(
27 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
28 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
30 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
31 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
32
33};
diff --git a/keyboards/soy20/keymaps/via/rules.mk b/keyboards/soy20/keymaps/via/rules.mk
new file mode 100644
index 000000000..36b7ba9cb
--- /dev/null
+++ b/keyboards/soy20/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes
diff --git a/keyboards/soy20/readme.md b/keyboards/soy20/readme.md
new file mode 100644
index 000000000..1ac310f79
--- /dev/null
+++ b/keyboards/soy20/readme.md
@@ -0,0 +1,13 @@
1# Soy20
2
3A 4x5 keypad created by drewkeys
4
5* Keyboard Maintainer: [Friend-Or-F0H](https://github.com/Friend-Or-F0H)
6* Hardware Supported: drewkeys Soy20 PCB
7* Hardware Availability: Limited GB
8
9Make example for this keyboard (after setting up your build environment):
10
11 make soy20:default
12
13See 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/soy20/rules.mk b/keyboards/soy20/rules.mk
new file mode 100644
index 000000000..06f81dad8
--- /dev/null
+++ b/keyboards/soy20/rules.mk
@@ -0,0 +1,24 @@
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 = full # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = yes # 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
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23
24LAYOUTS = ortho_5x4
diff --git a/keyboards/soy20/soy20.c b/keyboards/soy20/soy20.c
new file mode 100644
index 000000000..1b259e8d8
--- /dev/null
+++ b/keyboards/soy20/soy20.c
@@ -0,0 +1,18 @@
1/* Soy20 PCB}}
2Copyright (C) {{ 2020 }} {{ Drewkeys }}
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 3 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#include "soy20.h"
diff --git a/keyboards/soy20/soy20.h b/keyboards/soy20/soy20.h
new file mode 100644
index 000000000..c29b04f93
--- /dev/null
+++ b/keyboards/soy20/soy20.h
@@ -0,0 +1,33 @@
1/* Soy20 PCB}}
2Copyright (C) {{ 2020 }} {{ Drewkeys }}
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 3 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#pragma once
18
19#include "quantum.h"
20
21#define LAYOUT_ortho_5x4( \
22 K00, K01, K02, K03, \
23 K10, K11, K12, K13, \
24 K20, K21, K22, K23, \
25 K30, K31, K32, K33, \
26 K40, K41, K42, K43 \
27) { \
28 { K00, K01, K02, K03 }, \
29 { K10, K11, K12, K13 }, \
30 { K20, K21, K22, K23 }, \
31 { K30, K31, K32, K33 }, \
32 { K40, K41, K42, K43 } \
33}