aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kb_elmo
diff options
context:
space:
mode:
authorkb-elmo <lorwel@mailbox.org>2021-08-24 10:49:50 +0200
committerGitHub <noreply@github.com>2021-08-24 01:49:50 -0700
commita4aa6ccf7b98a203c16be51e8db4970a80f0abfd (patch)
tree450085ba0648ae996062473c6b91068774eff088 /keyboards/kb_elmo
parentb8c74d6b5d2e31b59b4ec73c84b8b4212b4b0936 (diff)
downloadqmk_firmware-a4aa6ccf7b98a203c16be51e8db4970a80f0abfd.tar.gz
qmk_firmware-a4aa6ccf7b98a203c16be51e8db4970a80f0abfd.zip
[Keyboard] Add QEZ keyboard (#14131)
Diffstat (limited to 'keyboards/kb_elmo')
-rw-r--r--keyboards/kb_elmo/qez/config.h44
-rw-r--r--keyboards/kb_elmo/qez/info.json128
-rw-r--r--keyboards/kb_elmo/qez/keymaps/default/keymap.c37
-rw-r--r--keyboards/kb_elmo/qez/keymaps/via/keymap.c43
-rw-r--r--keyboards/kb_elmo/qez/keymaps/via/rules.mk2
-rw-r--r--keyboards/kb_elmo/qez/qez.c17
-rw-r--r--keyboards/kb_elmo/qez/qez.h57
-rw-r--r--keyboards/kb_elmo/qez/readme.md24
-rw-r--r--keyboards/kb_elmo/qez/rules.mk22
9 files changed, 374 insertions, 0 deletions
diff --git a/keyboards/kb_elmo/qez/config.h b/keyboards/kb_elmo/qez/config.h
new file mode 100644
index 000000000..055ebe2a4
--- /dev/null
+++ b/keyboards/kb_elmo/qez/config.h
@@ -0,0 +1,44 @@
1/*
2Copyright 2021 kb-elmo<mail@elmo.space>
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 0xA68C
24#define PRODUCT_ID 0x675F
25#define DEVICE_VER 0x0001
26#define MANUFACTURER kb_elmo
27#define PRODUCT QEZ
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 10
32
33/* Keyboard Matrix Assignments */
34#define MATRIX_ROW_PINS { C6, C4, B1, B0 }
35#define MATRIX_COL_PINS { C7, B7, B6, B5, B4, B3, D6, D5, D4, D3 }
36
37/* COL2ROW, ROW2COL */
38#define DIODE_DIRECTION COL2ROW
39
40/* Debounce reduces chatter */
41#define DEBOUNCE 5
42
43/* Indicator LEDs */
44#define LED_CAPS_LOCK_PIN C5
diff --git a/keyboards/kb_elmo/qez/info.json b/keyboards/kb_elmo/qez/info.json
new file mode 100644
index 000000000..82b8d2044
--- /dev/null
+++ b/keyboards/kb_elmo/qez/info.json
@@ -0,0 +1,128 @@
1{
2 "keyboard_name": "qez",
3 "url": "",
4 "maintainer": "kb-elmo<mail@elmo.space>",
5 "width": 10.25,
6 "height": 4,
7 "layouts": {
8 "LAYOUT_split_space": {
9 "layout": [
10 {"x":0, "y":0},
11 {"x":1, "y":0},
12 {"x":2, "y":0},
13 {"x":3, "y":0},
14 {"x":4, "y":0},
15 {"x":5, "y":0},
16 {"x":6, "y":0},
17 {"x":7, "y":0},
18 {"x":8, "y":0},
19 {"x":9, "y":0, "w":1.25},
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":0, "y":2, "w":1.75},
31 {"x":1.75, "y":2},
32 {"x":2.75, "y":2},
33 {"x":3.75, "y":2},
34 {"x":4.75, "y":2},
35 {"x":5.75, "y":2},
36 {"x":6.75, "y":2},
37 {"x":7.75, "y":2},
38 {"x":8.75, "y":2, "w":1.5},
39 {"x":0, "y":3},
40 {"x":1, "y":3},
41 {"x":2, "y":3},
42 {"x":3, "y":3, "w":2.25},
43 {"x":5.25, "y":3, "w":2},
44 {"x":7.25, "y":3},
45 {"x":8.25, "y":3},
46 {"x":9.25, "y":3}
47 ]
48 },
49 "LAYOUT_triple_space": {
50 "layout": [
51 {"x":0, "y":0},
52 {"x":1, "y":0},
53 {"x":2, "y":0},
54 {"x":3, "y":0},
55 {"x":4, "y":0},
56 {"x":5, "y":0},
57 {"x":6, "y":0},
58 {"x":7, "y":0},
59 {"x":8, "y":0},
60 {"x":9, "y":0, "w":1.25},
61 {"x":0, "y":1, "w":1.25},
62 {"x":1.25, "y":1},
63 {"x":2.25, "y":1},
64 {"x":3.25, "y":1},
65 {"x":4.25, "y":1},
66 {"x":5.25, "y":1},
67 {"x":6.25, "y":1},
68 {"x":7.25, "y":1},
69 {"x":8.25, "y":1},
70 {"x":9.25, "y":1},
71 {"x":0, "y":2, "w":1.75},
72 {"x":1.75, "y":2},
73 {"x":2.75, "y":2},
74 {"x":3.75, "y":2},
75 {"x":4.75, "y":2},
76 {"x":5.75, "y":2},
77 {"x":6.75, "y":2},
78 {"x":7.75, "y":2},
79 {"x":8.75, "y":2, "w":1.5},
80 {"x":0, "y":3},
81 {"x":1, "y":3},
82 {"x":2, "y":3, "w":2.5},
83 {"x":4.5, "y":3, "w":1.5},
84 {"x":6, "y":3, "w":2.25},
85 {"x":8.25, "y":3},
86 {"x":9.25, "y":3}
87 ]
88 },
89 "LAYOUT_full_space": {
90 "layout": [
91 {"x":0, "y":0},
92 {"x":1, "y":0},
93 {"x":2, "y":0},
94 {"x":3, "y":0},
95 {"x":4, "y":0},
96 {"x":5, "y":0},
97 {"x":6, "y":0},
98 {"x":7, "y":0},
99 {"x":8, "y":0},
100 {"x":9, "y":0, "w":1.25},
101 {"x":0, "y":1, "w":1.25},
102 {"x":1.25, "y":1},
103 {"x":2.25, "y":1},
104 {"x":3.25, "y":1},
105 {"x":4.25, "y":1},
106 {"x":5.25, "y":1},
107 {"x":6.25, "y":1},
108 {"x":7.25, "y":1},
109 {"x":8.25, "y":1},
110 {"x":9.25, "y":1},
111 {"x":0, "y":2, "w":1.75},
112 {"x":1.75, "y":2},
113 {"x":2.75, "y":2},
114 {"x":3.75, "y":2},
115 {"x":4.75, "y":2},
116 {"x":5.75, "y":2},
117 {"x":6.75, "y":2},
118 {"x":7.75, "y":2},
119 {"x":8.75, "y":2, "w":1.5},
120 {"x":0, "y":3},
121 {"x":1, "y":3},
122 {"x":2, "y":3, "w":6.25},
123 {"x":8.25, "y":3},
124 {"x":9.25, "y":3}
125 ]
126 }
127 }
128}
diff --git a/keyboards/kb_elmo/qez/keymaps/default/keymap.c b/keyboards/kb_elmo/qez/keymaps/default/keymap.c
new file mode 100644
index 000000000..d3198af01
--- /dev/null
+++ b/keyboards/kb_elmo/qez/keymaps/default/keymap.c
@@ -0,0 +1,37 @@
1/* Copyright 2021 kb-elmo<mail@elmo.space>
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 [0] = LAYOUT_split_space(
20 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
21 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
22 LT(1,KC_Z), KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, LT(2,KC_DOT),
23 KC_LCTL, KC_LGUI, KC_LALT, LSFT_T(KC_SPC), KC_BSPC, KC_RALT, MO(1), MO(2)
24 ),
25 [1] = LAYOUT_split_space(
26 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
27 KC_TAB, KC_ESC, KC_MINS, KC_EQL, KC_TRNS, KC_SCLN, KC_QUOT, KC_LBRC, KC_RBRC, KC_BSLS,
28 KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SLSH,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL, KC_TRNS, KC_TRNS, KC_TRNS
30 ),
31 [2] = LAYOUT_split_space(
32 KC_HOME, KC_UP, KC_END, KC_PGUP, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6,
33 KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
34 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
35 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
36 )
37};
diff --git a/keyboards/kb_elmo/qez/keymaps/via/keymap.c b/keyboards/kb_elmo/qez/keymaps/via/keymap.c
new file mode 100644
index 000000000..0866c9950
--- /dev/null
+++ b/keyboards/kb_elmo/qez/keymaps/via/keymap.c
@@ -0,0 +1,43 @@
1/* Copyright 2021 kb-elmo<mail@elmo.space>
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 [0] = LAYOUT_split_space(
20 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
21 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
22 LT(1,KC_Z), KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, LT(2,KC_DOT),
23 KC_LCTL, KC_LGUI, KC_LALT, LSFT_T(KC_SPC), KC_BSPC, KC_RALT, MO(1), MO(2)
24 ),
25 [1] = LAYOUT_split_space(
26 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
27 KC_TAB, KC_ESC, KC_MINS, KC_EQL, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, KC_BSLS,
28 KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SLSH,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL, KC_TRNS, KC_TRNS, KC_TRNS
30 ),
31 [2] = LAYOUT_split_space(
32 KC_HOME, KC_UP, KC_END, KC_PGUP, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6,
33 KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
34 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
35 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
36 ),
37 [3] = LAYOUT_split_space(
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
40 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
42 )
43};
diff --git a/keyboards/kb_elmo/qez/keymaps/via/rules.mk b/keyboards/kb_elmo/qez/keymaps/via/rules.mk
new file mode 100644
index 000000000..36b7ba9cb
--- /dev/null
+++ b/keyboards/kb_elmo/qez/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes
diff --git a/keyboards/kb_elmo/qez/qez.c b/keyboards/kb_elmo/qez/qez.c
new file mode 100644
index 000000000..68808fad8
--- /dev/null
+++ b/keyboards/kb_elmo/qez/qez.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 kb-elmo<mail@elmo.space>
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 "qez.h"
diff --git a/keyboards/kb_elmo/qez/qez.h b/keyboards/kb_elmo/qez/qez.h
new file mode 100644
index 000000000..1bf9cde24
--- /dev/null
+++ b/keyboards/kb_elmo/qez/qez.h
@@ -0,0 +1,57 @@
1/* Copyright 2021 kb-elmo<mail@elmo.space>
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 ___ KC_NO
22
23#define LAYOUT_split_space( \
24 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, \
25 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, \
26 k20, k22, k23, k24, k25, k26, k27, k28, k29, \
27 k21, k31, k32, k33, k36, k37, k38, k39 \
28) { \
29 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09 }, \
30 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19 }, \
31 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29 }, \
32 { ___, k31, k32, k33, ___, ___, k36, k37, k38, k39 } \
33}
34
35#define LAYOUT_triple_space( \
36 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, \
37 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, \
38 k20, k22, k23, k24, k25, k26, k27, k28, k29, \
39 k21, k31, k33, k35, k36, k38, k39 \
40) { \
41 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09 }, \
42 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19 }, \
43 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29 }, \
44 { ___, k31, ___, k33, ___, k35, k36, ___, k38, k39 } \
45}
46
47#define LAYOUT_full_space( \
48 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, \
49 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, \
50 k20, k22, k23, k24, k25, k26, k27, k28, k29, \
51 k21, k31, k35, k38, k39 \
52) { \
53 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09 }, \
54 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19 }, \
55 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29 }, \
56 { ___, k31, k32, ___, ___, k35, ___, k37, k38, k39 } \
57}
diff --git a/keyboards/kb_elmo/qez/readme.md b/keyboards/kb_elmo/qez/readme.md
new file mode 100644
index 000000000..5deb4044a
--- /dev/null
+++ b/keyboards/kb_elmo/qez/readme.md
@@ -0,0 +1,24 @@
1# QEZ
2
3![qez](https://i.imgur.com/x00N9f3l.jpg)
4
5A seamless gasketmounted QAZ-like 40% keyboard
6
7* Keyboard Maintainer: [kb-elmo](https://github.com/kb-elmo)
8* Hardware Supported: QEZ rev.1 PCB
9* Hardware Availability: [Open source project](https://github.com/kb-elmo/QEZ)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make kb_elmo/qez:default
14
15Flashing example for this keyboard:
16
17 make kb_elmo/qez: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).
20
21## Bootloader
22
23* **Bootmagic reset**: Hold down the top left key and plug in the keyboard
24* **Physical reset button**: Briefly press the button labeled "RESET" on the back of the PCB \ No newline at end of file
diff --git a/keyboards/kb_elmo/qez/rules.mk b/keyboards/kb_elmo/qez/rules.mk
new file mode 100644
index 000000000..b48dcad7d
--- /dev/null
+++ b/keyboards/kb_elmo/qez/rules.mk
@@ -0,0 +1,22 @@
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 = 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 = no # 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