aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricesoup <sadeeedw@gmail.com>2021-03-07 02:03:48 +0500
committerGitHub <noreply@github.com>2021-03-06 13:03:48 -0800
commit788b1854b42a916919c3e8efc77b366ba03d2d8c (patch)
tree47d94385d51aca7d3e8c389d990e497a87f9cc22
parent86e28b4db84223152d959288f17e5bcfc5960e75 (diff)
downloadqmk_firmware-788b1854b42a916919c3e8efc77b366ba03d2d8c.tar.gz
qmk_firmware-788b1854b42a916919c3e8efc77b366ba03d2d8c.zip
[Keyboard] add Soup10 support (#11921)
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/soup10/config.h153
-rw-r--r--keyboards/soup10/info.json23
-rw-r--r--keyboards/soup10/keymaps/default/keymap.c36
-rw-r--r--keyboards/soup10/keymaps/default/readme.md1
-rw-r--r--keyboards/soup10/keymaps/via/keymap.c44
-rw-r--r--keyboards/soup10/keymaps/via/rules.mk1
-rw-r--r--keyboards/soup10/readme.md19
-rw-r--r--keyboards/soup10/rules.mk23
-rw-r--r--keyboards/soup10/soup10.c17
-rw-r--r--keyboards/soup10/soup10.h39
10 files changed, 356 insertions, 0 deletions
diff --git a/keyboards/soup10/config.h b/keyboards/soup10/config.h
new file mode 100644
index 000000000..83fb2dd89
--- /dev/null
+++ b/keyboards/soup10/config.h
@@ -0,0 +1,153 @@
1/*
2Copyright 2021 icesoup
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 0x5375
24#define PRODUCT_ID 0x0001
25#define DEVICE_VER 0x0001
26#define MANUFACTURER icesoup
27#define PRODUCT soup10
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 3
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// 0 1 2 3
44#define MATRIX_ROW_PINS { D1, D0, D4, C6 }
45#define MATRIX_COL_PINS { D7, E6, B4 }
46#define UNUSED_PINS
47
48/* COL2ROW, ROW2COL */
49#define DIODE_DIRECTION COL2ROW
50
51/*
52 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
53 */
54#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
55
56//#define LED_NUM_LOCK_PIN B0
57//#define LED_CAPS_LOCK_PIN B1
58//#define LED_SCROLL_LOCK_PIN B2
59//#define LED_COMPOSE_PIN B3
60//#define LED_KANA_PIN B4
61
62//#define BACKLIGHT_PIN B7
63//#define BACKLIGHT_LEVELS 3
64//#define BACKLIGHT_BREATHING
65
66//#define RGB_DI_PIN E2
67//#ifdef RGB_DI_PIN
68//# define RGBLED_NUM 16
69//# define RGBLIGHT_HUE_STEP 8
70//# define RGBLIGHT_SAT_STEP 8
71//# define RGBLIGHT_VAL_STEP 8
72//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
73//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
74/*== all animations enable ==*/
75//# define RGBLIGHT_ANIMATIONS
76/*== or choose animations ==*/
77//# define RGBLIGHT_EFFECT_BREATHING
78//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
79//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
80//# define RGBLIGHT_EFFECT_SNAKE
81//# define RGBLIGHT_EFFECT_KNIGHT
82//# define RGBLIGHT_EFFECT_CHRISTMAS
83//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
84//# define RGBLIGHT_EFFECT_RGB_TEST
85//# define RGBLIGHT_EFFECT_ALTERNATING
86/*== customize breathing effect ==*/
87/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
88//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
89/*==== use exp() and sin() ====*/
90//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
91//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
92//#endif
93
94/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
95#define DEBOUNCE 5
96
97/* define if matrix has ghost (lacks anti-ghosting diodes) */
98//#define MATRIX_HAS_GHOST
99
100/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
101#define LOCKING_SUPPORT_ENABLE
102/* Locking resynchronize hack */
103#define LOCKING_RESYNC_ENABLE
104
105/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
106 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
107 */
108//#define GRAVE_ESC_CTRL_OVERRIDE
109
110/*
111 * Force NKRO
112 *
113 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
114 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
115 * makefile for this to work.)
116 *
117 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
118 * until the next keyboard reset.
119 *
120 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
121 * fully operational during normal computer usage.
122 *
123 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
124 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
125 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
126 * power-up.
127 *
128 */
129//#define FORCE_NKRO
130
131/*
132 * Feature disable options
133 * These options are also useful to firmware size reduction.
134 */
135
136/* disable debug print */
137//#define NO_DEBUG
138
139/* disable print */
140//#define NO_PRINT
141
142/* disable action features */
143//#define NO_ACTION_LAYER
144//#define NO_ACTION_TAPPING
145//#define NO_ACTION_ONESHOT
146
147/* disable these deprecated features by default */
148#define NO_ACTION_MACRO
149#define NO_ACTION_FUNCTION
150
151/* Bootmagic Lite key configuration */
152#define BOOTMAGIC_LITE_ROW 0
153#define BOOTMAGIC_LITE_COLUMN 1
diff --git a/keyboards/soup10/info.json b/keyboards/soup10/info.json
new file mode 100644
index 000000000..d2688fe51
--- /dev/null
+++ b/keyboards/soup10/info.json
@@ -0,0 +1,23 @@
1{
2 "keyboard_name": "Soup10",
3 "url": "https://github.com/Sadeeed/soup10",
4 "maintainer": "Sadeeed",
5 "width": 3,
6 "height": 4,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"K01 (D1,E6)", "x":1, "y":0},
11 {"label":"K10 (D0,D7)", "x":0, "y":1},
12 {"label":"K11 (D0,E6)", "x":1, "y":1},
13 {"label":"K12 (D0,B4)", "x":2, "y":1},
14 {"label":"K20 (D4,D7)", "x":0, "y":2},
15 {"label":"K21 (D4,E6)", "x":1, "y":2},
16 {"label":"K22 (D4,B4)", "x":2, "y":2},
17 {"label":"K30 (C6,D7)", "x":0, "y":3},
18 {"label":"K31 (C6,E6)", "x":1, "y":3},
19 {"label":"K32 (C6,B4)", "x":2, "y":3}
20 ]
21 }
22 }
23}
diff --git a/keyboards/soup10/keymaps/default/keymap.c b/keyboards/soup10/keymaps/default/keymap.c
new file mode 100644
index 000000000..5379a1509
--- /dev/null
+++ b/keyboards/soup10/keymaps/default/keymap.c
@@ -0,0 +1,36 @@
1/* Copyright 2021 icesoup
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
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _BASE,
21 _FN
22};
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 /* Base */
25 [_BASE] = LAYOUT(
26 KC_F13,
27 KC_F14, KC_F15, KC_F16,
28 KC_F17, KC_F18, KC_F19,
29 KC_F20, KC_F21, MO(_FN)),
30
31 [_FN] = LAYOUT(
32 RESET,
33 KC_TRNS, KC_TRNS, KC_TRNS,
34 KC_TRNS, KC_TRNS, KC_TRNS,
35 KC_TRNS, KC_TRNS, KC_TRNS)
36};
diff --git a/keyboards/soup10/keymaps/default/readme.md b/keyboards/soup10/keymaps/default/readme.md
new file mode 100644
index 000000000..5daae6fdb
--- /dev/null
+++ b/keyboards/soup10/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for soup10
diff --git a/keyboards/soup10/keymaps/via/keymap.c b/keyboards/soup10/keymaps/via/keymap.c
new file mode 100644
index 000000000..30809c0ed
--- /dev/null
+++ b/keyboards/soup10/keymaps/via/keymap.c
@@ -0,0 +1,44 @@
1/* Copyright 2021 icesoup
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
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 /* Base */
20 [0] = LAYOUT(
21 KC_A,
22 KC_B, KC_C, KC_D,
23 KC_E, KC_F, KC_G,
24 KC_H, KC_I, KC_J),
25
26 [1] = LAYOUT(
27 KC_TRNS,
28 KC_TRNS, KC_TRNS, KC_TRNS,
29 KC_TRNS, KC_TRNS, KC_TRNS,
30 KC_TRNS, KC_TRNS, KC_TRNS),
31
32 [2] = LAYOUT(
33 KC_TRNS,
34 KC_TRNS, KC_TRNS, KC_TRNS,
35 KC_TRNS, KC_TRNS, KC_TRNS,
36 KC_TRNS, KC_TRNS, KC_TRNS),
37
38 [3] = LAYOUT(
39 KC_TRNS,
40 KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS,
42 KC_TRNS, KC_TRNS, KC_TRNS)
43
44};
diff --git a/keyboards/soup10/keymaps/via/rules.mk b/keyboards/soup10/keymaps/via/rules.mk
new file mode 100644
index 000000000..036bd6d1c
--- /dev/null
+++ b/keyboards/soup10/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/soup10/readme.md b/keyboards/soup10/readme.md
new file mode 100644
index 000000000..e9de91cd1
--- /dev/null
+++ b/keyboards/soup10/readme.md
@@ -0,0 +1,19 @@
1# soup10
2
3![soup10](https://i.imgur.com/YIMB3kKl.jpg)
4
5A 4x3 10 key macropad by Sadeed aka icesoup
6
7* Keyboard Maintainer: [icesoup](https://github.com/Sadeeed)
8* Hardware Supported: Pro Micro
9* Hardware Availability: [Repository](https://github.com/Sadeeed/Soup10)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make soup10:default
14
15Flashing example for this keyboard:
16
17 make soup10: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).
diff --git a/keyboards/soup10/rules.mk b/keyboards/soup10/rules.mk
new file mode 100644
index 000000000..df0fd4dcb
--- /dev/null
+++ b/keyboards/soup10/rules.mk
@@ -0,0 +1,23 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = no # 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
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23LTO_ENABLE = yes
diff --git a/keyboards/soup10/soup10.c b/keyboards/soup10/soup10.c
new file mode 100644
index 000000000..c08681392
--- /dev/null
+++ b/keyboards/soup10/soup10.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 icesoup
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 "soup10.h"
diff --git a/keyboards/soup10/soup10.h b/keyboards/soup10/soup10.h
new file mode 100644
index 000000000..b4a2c1456
--- /dev/null
+++ b/keyboards/soup10/soup10.h
@@ -0,0 +1,39 @@
1/* Copyright 2021 icesoup
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/* This is a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29#define LAYOUT( \
30 K01, \
31 K10, K11, K12, \
32 K20, K21, K22, \
33 K30, K31, K32 \
34) { \
35 { KC_NO, K01, KC_NO }, \
36 { K10, K11, K12 }, \
37 { K20, K21, K22 }, \
38 { K30, K31, K32 } \
39}