aboutsummaryrefslogtreecommitdiff
path: root/keyboards/3keyecosystem
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/3keyecosystem')
-rw-r--r--keyboards/3keyecosystem/2key2/2key2.c35
-rw-r--r--keyboards/3keyecosystem/2key2/2key2.h33
-rw-r--r--keyboards/3keyecosystem/2key2/config.h104
-rw-r--r--keyboards/3keyecosystem/2key2/info.json13
-rw-r--r--keyboards/3keyecosystem/2key2/keymaps/default/keymap.c40
-rw-r--r--keyboards/3keyecosystem/2key2/keymaps/via/keymap.c40
-rw-r--r--keyboards/3keyecosystem/2key2/keymaps/via/rules.mk1
-rw-r--r--keyboards/3keyecosystem/2key2/readme.md24
-rw-r--r--keyboards/3keyecosystem/2key2/rules.mk20
9 files changed, 310 insertions, 0 deletions
diff --git a/keyboards/3keyecosystem/2key2/2key2.c b/keyboards/3keyecosystem/2key2/2key2.c
new file mode 100644
index 000000000..17e87b412
--- /dev/null
+++ b/keyboards/3keyecosystem/2key2/2key2.c
@@ -0,0 +1,35 @@
1/*
2Copyright 2021 John Mueller
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#include "2key2.h"
18
19// RGB Matrix configuration
20// based on https://docs.qmk.fm/#/feature_rgb_matrix?id=common-configuration
21
22#ifdef RGB_MATRIX_ENABLE
23led_config_t g_led_config = { {
24 // Key Matrix to LED Index
25 { 0, 1 }
26}, {
27 // LED Index to Physical Position
28 // Using range { 0..224, 0..64 }
29 { 0, 32 }, { 224, 32 }
30}, {
31 // LED Index to Flag
32 // https://docs.qmk.fm/#/feature_rgb_matrix?id=flags
33 LED_FLAG_ALL, LED_FLAG_ALL
34} };
35#endif
diff --git a/keyboards/3keyecosystem/2key2/2key2.h b/keyboards/3keyecosystem/2key2/2key2.h
new file mode 100644
index 000000000..05af99101
--- /dev/null
+++ b/keyboards/3keyecosystem/2key2/2key2.h
@@ -0,0 +1,33 @@
1/*
2Copyright 2021 John Mueller
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#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 k00, k01 \
31) { \
32 { k00, k01 } \
33}
diff --git a/keyboards/3keyecosystem/2key2/config.h b/keyboards/3keyecosystem/2key2/config.h
new file mode 100644
index 000000000..4ca0e830e
--- /dev/null
+++ b/keyboards/3keyecosystem/2key2/config.h
@@ -0,0 +1,104 @@
1/*
2Copyright 2021 John Mueller
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#pragma once
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0x1209
23#define PRODUCT_ID 0x3304
24#define DEVICE_VER 0x0001
25#define MANUFACTURER 3-Key-Ecosystem
26#define PRODUCT 2key2
27
28/* key matrix size */
29#define MATRIX_ROWS 1
30#define MATRIX_COLS 2
31
32/* Keyboard Matrix Assignments */
33#define MATRIX_ROW_PINS { F6 }
34#define MATRIX_COL_PINS { F4, D7 }
35#define UNUSED_PINS
36
37// LED on kbmount base board is on B7
38#define LED_CAPS_LOCK_PIN B7 // onboard LED for testing
39
40/* COL2ROW, ROW2COL */
41#define DIODE_DIRECTION COL2ROW
42
43/* RGB matrix key backlighting */
44#define RGB_DI_PIN B2
45#define DRIVER_LED_TOTAL 2
46#define RGB_MATRIX_KEYPRESSES
47#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE
48#define RGB_MATRIX_STARTUP_HUE 90
49#define RGB_MATRIX_STARTUP_SPD 20
50#define RGB_MATRIX_STARTUP_VAL 128
51#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
52#define RGB_DISABLE_WHEN_USB_SUSPENDED
53
54#define ENABLE_RGB_MATRIX_ALPHAS_MODS
55#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
56#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
57#define ENABLE_RGB_MATRIX_BREATHING
58#define ENABLE_RGB_MATRIX_BAND_SAT
59#define ENABLE_RGB_MATRIX_BAND_VAL
60#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
61#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
62#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
63#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
64#define ENABLE_RGB_MATRIX_CYCLE_ALL
65#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
66#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
67#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
68#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
69#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
70#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
71#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
72#define ENABLE_RGB_MATRIX_DUAL_BEACON
73#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
74#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
75#define ENABLE_RGB_MATRIX_RAINDROPS
76#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
77#define ENABLE_RGB_MATRIX_HUE_BREATHING
78#define ENABLE_RGB_MATRIX_HUE_PENDULUM
79#define ENABLE_RGB_MATRIX_HUE_WAVE
80#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
81#define ENABLE_RGB_MATRIX_PIXEL_RAIN
82
83#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
84#define ENABLE_RGB_MATRIX_DIGITAL_RAIN
85
86#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
87#define ENABLE_RGB_MATRIX_SOLID_REACTIVE
88#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
89#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
90#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
91#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
92#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
93#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
94#define ENABLE_RGB_MATRIX_SPLASH
95#define ENABLE_RGB_MATRIX_MULTISPLASH
96#define ENABLE_RGB_MATRIX_SOLID_SPLASH
97#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
98
99/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
100#define DEBOUNCE 5
101
102/* disable these deprecated features by default */
103#define NO_ACTION_MACRO
104#define NO_ACTION_FUNCTION
diff --git a/keyboards/3keyecosystem/2key2/info.json b/keyboards/3keyecosystem/2key2/info.json
new file mode 100644
index 000000000..49caf91b5
--- /dev/null
+++ b/keyboards/3keyecosystem/2key2/info.json
@@ -0,0 +1,13 @@
1{
2 "keyboard_name": "3-Key-Ecosystem 2key2: 2x1 macro-keyboard",
3 "url": "https://github.com/softplus/3keyecosystem/tree/main/2key2",
4 "maintainer": "softplus",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {"label": "k00", "x": 0, "y": 0},
9 {"label": "k01", "x": 1, "y": 0}
10 ]
11 }
12 }
13}
diff --git a/keyboards/3keyecosystem/2key2/keymaps/default/keymap.c b/keyboards/3keyecosystem/2key2/keymaps/default/keymap.c
new file mode 100644
index 000000000..5c1671fb9
--- /dev/null
+++ b/keyboards/3keyecosystem/2key2/keymaps/default/keymap.c
@@ -0,0 +1,40 @@
1/* Copyright 2021 John Mueller
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};
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 /* Base */
25 [_BASE] = LAYOUT(
26 KC_A, KC_B
27 ),
28
29 [1] = LAYOUT(
30 KC_TRNS, KC_TRNS
31 ),
32
33 [2] = LAYOUT(
34 KC_TRNS, KC_TRNS
35 ),
36
37 [3] = LAYOUT(
38 KC_TRNS, KC_TRNS
39 )
40};
diff --git a/keyboards/3keyecosystem/2key2/keymaps/via/keymap.c b/keyboards/3keyecosystem/2key2/keymaps/via/keymap.c
new file mode 100644
index 000000000..7400a9c62
--- /dev/null
+++ b/keyboards/3keyecosystem/2key2/keymaps/via/keymap.c
@@ -0,0 +1,40 @@
1/* Copyright 2021 John Mueller
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};
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 /* Base */
25 [_BASE] = LAYOUT(
26 KC_A, KC_B
27 ),
28
29 [1] = LAYOUT(
30 KC_TRNS, KC_TRNS
31 ),
32
33 [2] = LAYOUT(
34 KC_TRNS, KC_TRNS
35 ),
36
37 [3] = LAYOUT(
38 KC_TRNS, KC_TRNS
39 )
40 };
diff --git a/keyboards/3keyecosystem/2key2/keymaps/via/rules.mk b/keyboards/3keyecosystem/2key2/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/3keyecosystem/2key2/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/3keyecosystem/2key2/readme.md b/keyboards/3keyecosystem/2key2/readme.md
new file mode 100644
index 000000000..3befa292f
--- /dev/null
+++ b/keyboards/3keyecosystem/2key2/readme.md
@@ -0,0 +1,24 @@
1# 3-Key-Ecosystem - 2key2
2
3![keyboard](https://i.imgur.com/IJ1Zyc7.jpeg)
4
5This is a 2x1 macro keyboard with WS2812B key lighting.
6It's designed for a modular keyboard mount using an ATmega32U4.
7
8* Keyboard Maintainer: [softplus](https://github.com/softplus)
9* Hardware Supported: [3keyecosystem-2key2](https://github.com/softplus/3keyecosystem/tree/main/2key2)
10* Hardware Availability: Open-Source files at above link
11
12Make example for this keyboard (after setting up your build environment):
13
14 make 3keyecosystem/2key2:default
15
16Flashing example for this keyboard:
17
18 make 3keyecosystem/2key2:default:flash
19
20## Bootloader
21
22To Enter the bootloader, click reset button on the main board.
23
24See 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/3keyecosystem/2key2/rules.mk b/keyboards/3keyecosystem/2key2/rules.mk
new file mode 100644
index 000000000..6322b40fa
--- /dev/null
+++ b/keyboards/3keyecosystem/2key2/rules.mk
@@ -0,0 +1,20 @@
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 = yes # Enable Bootmagic Lite
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
15NKRO_ENABLE = no # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18RGB_MATRIX_ENABLE = yes # Enable RGB matrix
19RGB_MATRIX_DRIVER = WS2812 # Select WS2812 driver for RGB matrix
20AUDIO_ENABLE = no # Audio output