aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/handwired/zergo/config.h50
-rw-r--r--keyboards/handwired/zergo/info.json93
-rw-r--r--keyboards/handwired/zergo/keymap.c37
-rw-r--r--keyboards/handwired/zergo/readme.md19
-rw-r--r--keyboards/handwired/zergo/rules.mk22
-rw-r--r--keyboards/handwired/zergo/zergo.c17
-rw-r--r--keyboards/handwired/zergo/zergo.h35
7 files changed, 273 insertions, 0 deletions
diff --git a/keyboards/handwired/zergo/config.h b/keyboards/handwired/zergo/config.h
new file mode 100644
index 000000000..55fbd280c
--- /dev/null
+++ b/keyboards/handwired/zergo/config.h
@@ -0,0 +1,50 @@
1/*
2Copyright 2020 E.Zelianin
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 0xFEED
24#define PRODUCT_ID 0xB92B
25#define DEVICE_VER 0x0001
26#define MANUFACTURER GreenJack
27#define PRODUCT zErgo
28
29/* key matrix size */
30#define MATRIX_ROWS 6
31#define MATRIX_COLS 14
32
33/* key matrix pins */
34#define MATRIX_ROW_PINS { B1, D7, C3, D6, D5, D4 }
35#define MATRIX_COL_PINS { C7, C6, C5, C4, C2, C1, B7, D3, D2, B6, B5, B4, B3, B2 }
36#define UNUSED_PINS
37
38/* COL2ROW or ROW2COL */
39#define DIODE_DIRECTION COL2ROW
40
41/* number of backlight levels */
42
43/* Set 0 if debouncing isn't needed */
44#define DEBOUNCE 5
45
46/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
47#define LOCKING_SUPPORT_ENABLE
48
49/* Locking resynchronize hack */
50#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/handwired/zergo/info.json b/keyboards/handwired/zergo/info.json
new file mode 100644
index 000000000..0bbb867ad
--- /dev/null
+++ b/keyboards/handwired/zergo/info.json
@@ -0,0 +1,93 @@
1{
2 "keyboard_name": "zergo",
3 "url": "",
4 "maintainer": "greenjack",
5 "width": 15,
6 "height": 6.25,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"Esc", "x":0, "y":0},
11 {"label":"F1", "x":2, "y":0},
12 {"label":"F2", "x":3, "y":0},
13 {"label":"F3", "x":4, "y":0},
14 {"label":"F4", "x":5, "y":0},
15 {"label":"F5", "x":6.5, "y":0},
16 {"label":"F6", "x":7.5, "y":0},
17 {"label":"F7", "x":8.5, "y":0},
18 {"label":"F8", "x":9.5, "y":0},
19 {"label":"F9", "x":11, "y":0},
20 {"label":"F10", "x":12, "y":0},
21 {"label":"F11", "x":13, "y":0},
22 {"label":"F12", "x":14, "y":0},
23 {"label":"Home", "x":0, "y":1.25},
24 {"label":"~", "x":1, "y":1.25},
25 {"label":"!", "x":2, "y":1.25},
26 {"label":"@", "x":3, "y":1.25},
27 {"label":"#", "x":4, "y":1.25},
28 {"label":"$", "x":5, "y":1.25},
29 {"label":"%", "x":6, "y":1.25},
30 {"label":"^", "x":7, "y":1.25},
31 {"label":"&", "x":8, "y":1.25},
32 {"label":"*", "x":9, "y":1.25},
33 {"label":"(", "x":10, "y":1.25},
34 {"label":")", "x":11, "y":1.25},
35 {"label":"_", "x":12, "y":1.25},
36 {"label":"+", "x":13, "y":1.25},
37 {"label":"PgUp", "x":14, "y":1.25},
38 {"label":"Tab", "x":0, "y":2.25, "w":1.5},
39 {"label":"Q", "x":1.5, "y":2.25},
40 {"label":"W", "x":2.5, "y":2.25},
41 {"label":"E", "x":3.5, "y":2.25},
42 {"label":"R", "x":4.5, "y":2.25},
43 {"label":"T", "x":5.5, "y":2.25},
44 {"label":"}", "x":6.5, "y":2.25},
45 {"label":"Y", "x":7.5, "y":2.25},
46 {"label":"U", "x":8.5, "y":2.25},
47 {"label":"I", "x":9.5, "y":2.25},
48 {"label":"O", "x":10.5, "y":2.25},
49 {"label":"P", "x":11.5, "y":2.25},
50 {"label":"{", "x":12.5, "y":2.25},
51 {"label":"|", "x":13.5, "y":2.25, "w":1.5},
52 {"label":"Ctrl", "x":0, "y":3.25, "w":1.25},
53 {"label":"A", "x":1.25, "y":3.25},
54 {"label":"S", "x":2.25, "y":3.25},
55 {"label":"D", "x":3.25, "y":3.25},
56 {"label":"F", "x":4.25, "y":3.25},
57 {"label":"G", "x":5.25, "y":3.25},
58 {"label":"H", "x":7.75, "y":3.25},
59 {"label":"J", "x":8.75, "y":3.25},
60 {"label":"K", "x":9.75, "y":3.25},
61 {"label":"L", "x":10.75, "y":3.25},
62 {"label":":", "x":11.75, "y":3.25},
63 {"label":"\"", "x":12.75, "y":3.25},
64 {"label":"Ctrl", "x":13.75, "y":3.25, "w":1.25},
65 {"label":"End", "x":0, "y":4.25},
66 {"label":"\u2191", "x":1, "y":4.25},
67 {"label":"Z", "x":2, "y":4.25},
68 {"label":"X", "x":3, "y":4.25},
69 {"label":"C", "x":4, "y":4.25},
70 {"label":"V", "x":5, "y":4.25},
71 {"label":"Enter", "x":6, "y":4.25, "w":2},
72 {"label":"B", "x":8, "y":4.25},
73 {"label":"N", "x":9, "y":4.25},
74 {"label":"M", "x":10, "y":4.25},
75 {"label":"<", "x":11, "y":4.25},
76 {"label":">", "x":12, "y":4.25},
77 {"label":"?", "x":13, "y":4.25},
78 {"label":"PgDn", "x":14, "y":4.25},
79 {"label":"\u2190", "x":0, "y":5.25},
80 {"label":"\u2193", "x":1, "y":5.25},
81 {"label":"\u2192", "x":2, "y":5.25},
82 {"label":"Alt", "x":3, "y":5.25, "w":1.25},
83 {"label":"Space", "x":4.25, "y":5.25, "w":2.25},
84 {"label":"Bsp", "x":6.5, "y":5.25},
85 {"label":"Space", "x":7.5, "y":5.25, "w":2.75},
86 {"label":"Alt", "x":10.25, "y":5.25, "w":1.25},
87 {"label":"Win", "x":11.5, "y":5.25, "w":1.25},
88 {"label":"Menu", "x":12.75, "y":5.25, "w":1.25},
89 {"label":"Fn", "x":14, "y":5.25}
90 ]
91 }
92 }
93}
diff --git a/keyboards/handwired/zergo/keymap.c b/keyboards/handwired/zergo/keymap.c
new file mode 100644
index 000000000..d0f7b750e
--- /dev/null
+++ b/keyboards/handwired/zergo/keymap.c
@@ -0,0 +1,37 @@
1/* Copyright 2020 E.Zelianin
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
21 LAYOUT(
22 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
23 KC_HOME, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_PGUP,
24 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_5, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_BSLS,
25 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_RBRC, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_LCTL,
26 MT(MOD_LSFT, KC_END), KC_UP, KC_Z, KC_X, KC_C, KC_V, KC_ENT, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MT(MOD_LSFT, KC_PGDN),
27 KC_LEFT, KC_DOWN, KC_RGHT, KC_LALT, KC_SPC, KC_BSPC, KC_SPC, KC_RALT, KC_LGUI, KC_RGUI, LT(1, KC_NO)),
28
29 LAYOUT(
30 TG(1), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET,
31 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, KC_TRNS,
32 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, KC_TRNS,
33 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
34 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, 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, KC_TRNS, KC_TRNS, KC_TRNS),
36
37};
diff --git a/keyboards/handwired/zergo/readme.md b/keyboards/handwired/zergo/readme.md
new file mode 100644
index 000000000..fa412e515
--- /dev/null
+++ b/keyboards/handwired/zergo/readme.md
@@ -0,0 +1,19 @@
1# zErgo
2
3![Imgur](https://i.imgur.com/XbyhGeY.png)
4
5A compact 70% (15x6) keyboard inspired by the Katana60 project, but with F keys and adopted for the Russian layout.
6
7* Keyboard Maintainer: [Greenjack](https://github.com/greenjack-z)
8* Hardware Supported: zErgo PCB, Teensy 2.0++
9* Hardware Availability: prototype self-made hardware
10
11Make example for this keyboard (after setting up your build environment):
12
13 make handwired/zergo:default
14
15Flashing example for this keyboard:
16
17 make handwired/zergo: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/handwired/zergo/rules.mk b/keyboards/handwired/zergo/rules.mk
new file mode 100644
index 000000000..e633ab396
--- /dev/null
+++ b/keyboards/handwired/zergo/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = at90usb1286
3
4# Bootloader selection
5BOOTLOADER = halfkay
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # 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
diff --git a/keyboards/handwired/zergo/zergo.c b/keyboards/handwired/zergo/zergo.c
new file mode 100644
index 000000000..8b283d126
--- /dev/null
+++ b/keyboards/handwired/zergo/zergo.c
@@ -0,0 +1,17 @@
1/* Copyright 2020 E.Zelianin
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 "zergo.h"
diff --git a/keyboards/handwired/zergo/zergo.h b/keyboards/handwired/zergo/zergo.h
new file mode 100644
index 000000000..b4daeff76
--- /dev/null
+++ b/keyboards/handwired/zergo/zergo.h
@@ -0,0 +1,35 @@
1/* Copyright 2020 E.Zelianin
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 LAYOUT( \
22 K000, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, \
23 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, \
24 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
25 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \
26 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, \
27 K500, K501, K502, K503, K505, K506, K507, K509, K511, K512, K513 \
28) { \
29 { K000, KC_NO, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
30 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \
31 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \
32 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \
33 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413 }, \
34 { K500, K501, K502, K503, KC_NO, K505, K506, K507, KC_NO, K509, KC_NO, K511, K512, K513 } \
35}