diff options
author | Yaroslav Smirnov <elorenn@bk.ru> | 2021-08-19 21:15:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-19 11:15:30 -0700 |
commit | c59212821918736504074da24f33108551e8bdde (patch) | |
tree | 4c5ea41d3d1917f57f563da7253449cbedb3c383 | |
parent | 1bfbaae533fd4716407a5f381df1a3b317963a92 (diff) | |
download | qmk_firmware-c59212821918736504074da24f33108551e8bdde.tar.gz qmk_firmware-c59212821918736504074da24f33108551e8bdde.zip |
[Keyboard] Add Elrgo S to keyboards/handwired (#13893)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r-- | keyboards/handwired/elrgo_s/config.h | 58 | ||||
-rw-r--r-- | keyboards/handwired/elrgo_s/elrgo_s.c | 17 | ||||
-rw-r--r-- | keyboards/handwired/elrgo_s/elrgo_s.h | 38 | ||||
-rw-r--r-- | keyboards/handwired/elrgo_s/info.json | 59 | ||||
-rw-r--r-- | keyboards/handwired/elrgo_s/keymaps/default/config.h | 22 | ||||
-rw-r--r-- | keyboards/handwired/elrgo_s/keymaps/default/keymap.c | 58 | ||||
-rw-r--r-- | keyboards/handwired/elrgo_s/readme.md | 28 | ||||
-rw-r--r-- | keyboards/handwired/elrgo_s/rules.mk | 23 |
8 files changed, 303 insertions, 0 deletions
diff --git a/keyboards/handwired/elrgo_s/config.h b/keyboards/handwired/elrgo_s/config.h new file mode 100644 index 000000000..b2ef4681e --- /dev/null +++ b/keyboards/handwired/elrgo_s/config.h | |||
@@ -0,0 +1,58 @@ | |||
1 | /* | ||
2 | Copyright 2021 Yaroslav Smirnov <elorenn@bk.ru> | ||
3 | * | ||
4 | * This program is free software: you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation, either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #include "config_common.h" | ||
21 | |||
22 | // Rows are doubled-up for splits | ||
23 | #define MATRIX_ROWS 8 | ||
24 | #define MATRIX_COLS 6 | ||
25 | |||
26 | // Wiring of each half | ||
27 | #define MATRIX_ROW_PINS { B1, B3, B2, B6 } | ||
28 | #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 } | ||
29 | // Reversed sort | ||
30 | |||
31 | #define DIODE_DIRECTION COL2ROW | ||
32 | |||
33 | /* USB Device descriptor parameter */ | ||
34 | #define PRODUCT Elrgo S | ||
35 | #define MANUFACTURER Eloren | ||
36 | #define VENDOR_ID 0x454C | ||
37 | #define PRODUCT_ID 0x3436 | ||
38 | #define DEVICE_VER 0x0001 | ||
39 | |||
40 | /* Set 0 if debouncing isn't needed */ | ||
41 | #define DEBOUNCE 5 | ||
42 | |||
43 | /* serial.c configuration for split keyboard */ | ||
44 | #define SOFT_SERIAL_PIN D0 | ||
45 | |||
46 | |||
47 | /* disable debug print */ | ||
48 | // #define NO_DEBUG | ||
49 | |||
50 | /* disable print */ | ||
51 | // #define NO_PRINT | ||
52 | |||
53 | /* disable action features */ | ||
54 | //#define NO_ACTION_LAYER | ||
55 | //#define NO_ACTION_TAPPING | ||
56 | //#define NO_ACTION_ONESHOT | ||
57 | //#define NO_ACTION_MACRO | ||
58 | //#define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/handwired/elrgo_s/elrgo_s.c b/keyboards/handwired/elrgo_s/elrgo_s.c new file mode 100644 index 000000000..32640da06 --- /dev/null +++ b/keyboards/handwired/elrgo_s/elrgo_s.c | |||
@@ -0,0 +1,17 @@ | |||
1 | /* Copyright 2021 Yaroslav Smirnov <elorenn@bk.ru> | ||
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 "elrgo_s.h" | ||
diff --git a/keyboards/handwired/elrgo_s/elrgo_s.h b/keyboards/handwired/elrgo_s/elrgo_s.h new file mode 100644 index 000000000..0fb2b58e5 --- /dev/null +++ b/keyboards/handwired/elrgo_s/elrgo_s.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /* Copyright 2021 Yaroslav Smirnov <elorenn@bk.ru> | ||
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 | |||
22 | #define LAYOUT_split_3x6_5(\ | ||
23 | L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \ | ||
24 | L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \ | ||
25 | L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \ | ||
26 | L31, L32, L33, L34, L35, R30, R31, R32, R33, R34 \ | ||
27 | ) \ | ||
28 | { \ | ||
29 | { L00, L01, L02, L03, L04, L05 }, \ | ||
30 | { L10, L11, L12, L13, L14, L15 }, \ | ||
31 | { L20, L21, L22, L23, L24, L25 }, \ | ||
32 | {KC_NO, L31, L32, L33, L34, L35}, \ | ||
33 | \ | ||
34 | { R00, R01, R02, R03, R04, R05 }, \ | ||
35 | { R10, R11, R12, R13, R14, R15 }, \ | ||
36 | { R20, R21, R22, R23, R24, R25 }, \ | ||
37 | { R30, R31, R32, R33, R34, KC_NO} \ | ||
38 | } | ||
diff --git a/keyboards/handwired/elrgo_s/info.json b/keyboards/handwired/elrgo_s/info.json new file mode 100644 index 000000000..0b561049e --- /dev/null +++ b/keyboards/handwired/elrgo_s/info.json | |||
@@ -0,0 +1,59 @@ | |||
1 | { | ||
2 | "keyboard_name": "Elrgo S", | ||
3 | "url": "", | ||
4 | "maintainer": "qmk", | ||
5 | "width": 17, | ||
6 | "height": 4, | ||
7 | "layouts": { | ||
8 | "LAYOUT_split_3x6_5": { | ||
9 | "layout": [ | ||
10 | {"label":"L00", "x":0, "y":0}, | ||
11 | {"label":"L01", "x":1, "y":0}, | ||
12 | {"label":"L02", "x":2, "y":0}, | ||
13 | {"label":"L03", "x":3, "y":0}, | ||
14 | {"label":"L04", "x":4, "y":0}, | ||
15 | {"label":"L05", "x":5, "y":0}, | ||
16 | {"label":"R00", "x":9, "y":0}, | ||
17 | {"label":"R01", "x":10, "y":0}, | ||
18 | {"label":"R02", "x":11, "y":0}, | ||
19 | {"label":"R03", "x":12, "y":0}, | ||
20 | {"label":"R04", "x":13, "y":0}, | ||
21 | {"label":"R05", "x":14, "y":0}, | ||
22 | {"label":"L10", "x":0, "y":1}, | ||
23 | {"label":"L11", "x":1, "y":1}, | ||
24 | {"label":"L12", "x":2, "y":1}, | ||
25 | {"label":"L13", "x":3, "y":1}, | ||
26 | {"label":"L14", "x":4, "y":1}, | ||
27 | {"label":"L15", "x":5, "y":1}, | ||
28 | {"label":"R10", "x":9, "y":1}, | ||
29 | {"label":"R11", "x":10, "y":1}, | ||
30 | {"label":"R12", "x":11, "y":1}, | ||
31 | {"label":"R13", "x":12, "y":1}, | ||
32 | {"label":"R14", "x":13, "y":1}, | ||
33 | {"label":"R15", "x":14, "y":1}, | ||
34 | {"label":"L20", "x":0, "y":2}, | ||
35 | {"label":"L21", "x":1, "y":2}, | ||
36 | {"label":"L22", "x":2, "y":2}, | ||
37 | {"label":"L23", "x":3, "y":2}, | ||
38 | {"label":"L24", "x":4, "y":2}, | ||
39 | {"label":"L25", "x":5, "y":2}, | ||
40 | {"label":"R20", "x":9, "y":2}, | ||
41 | {"label":"R21", "x":10, "y":2}, | ||
42 | {"label":"R22", "x":11, "y":2}, | ||
43 | {"label":"R23", "x":12, "y":2}, | ||
44 | {"label":"R24", "x":13, "y":2}, | ||
45 | {"label":"R25", "x":14, "y":2}, | ||
46 | {"label":"L31", "x":3, "y":3}, | ||
47 | {"label":"L32", "x":4, "y":3}, | ||
48 | {"label":"L33", "x":5, "y":3}, | ||
49 | {"label":"L34", "x":6, "y":3}, | ||
50 | {"label":"L35", "x":6, "y":2}, | ||
51 | {"label":"R30", "x":8, "y":2}, | ||
52 | {"label":"R31", "x":8, "y":3}, | ||
53 | {"label":"R32", "x":9, "y":3}, | ||
54 | {"label":"R33", "x":10, "y":3}, | ||
55 | {"label":"R34", "x":11, "y":3} | ||
56 | ] | ||
57 | } | ||
58 | } | ||
59 | } | ||
diff --git a/keyboards/handwired/elrgo_s/keymaps/default/config.h b/keyboards/handwired/elrgo_s/keymaps/default/config.h new file mode 100644 index 000000000..f3ef42b9b --- /dev/null +++ b/keyboards/handwired/elrgo_s/keymaps/default/config.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* Copyright 2021 Yaroslav Smirnov <elorenn@bk.ru> | ||
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 | #define USE_SERIAL | ||
20 | |||
21 | #define MASTER_LEFT | ||
22 | // #define MASTER_RIGHT | ||
diff --git a/keyboards/handwired/elrgo_s/keymaps/default/keymap.c b/keyboards/handwired/elrgo_s/keymaps/default/keymap.c new file mode 100644 index 000000000..572edbf0b --- /dev/null +++ b/keyboards/handwired/elrgo_s/keymaps/default/keymap.c | |||
@@ -0,0 +1,58 @@ | |||
1 | /* Copyright 2021 Yaroslav Smirnov <elorenn@bk.ru> | ||
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 | |||
19 | enum layers { _QWERTY, _LOWER, _RAISE, _ADJUST }; | ||
20 | |||
21 | #define LOWER TT(_LOWER) | ||
22 | #define RAISE MO(_RAISE) | ||
23 | |||
24 | #define M_SHLL LCTL(KC_LSFT) | ||
25 | #define M_SHLA LCTL(KC_LALT) | ||
26 | #define M_BBSLS LSFT(KC_BSLS) | ||
27 | #define M_FLEFT LCTL(KC_LEFT) | ||
28 | #define M_FRIGHT LCTL(KC_RIGHT) | ||
29 | |||
30 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
31 | [_QWERTY] = LAYOUT_split_3x6_5( | ||
32 | KC_ESC , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSPC , | ||
33 | KC_LBRC , KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN , KC_QUOT , | ||
34 | KC_RBRC , KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM , KC_DOT , KC_SLSH , KC_GRAVE, | ||
35 | KC_LGUI , KC_LCTL , KC_LSFT , LOWER , M_SHLL , M_SHLA , RAISE , KC_SPC , KC_LALT , KC_ENT | ||
36 | ), | ||
37 | |||
38 | [_LOWER] = LAYOUT_split_3x6_5( | ||
39 | KC_ESC , KC_PDOT , KC_PMNS , KC_PPLS , KC_MINS , KC_EQL , KC_MUTE , KC_MSTP , KC_MPLY , KC_MPRV , KC_MNXT , KC_BSPC , | ||
40 | KC_PAST , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , | ||
41 | KC_PSLS , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , | ||
42 | KC_LGUI , KC_LCTL , KC_LSFT , KC_TRNS , M_SHLL , M_SHLA , KC_TRNS , KC_SPC , KC_LALT , KC_ENT | ||
43 | ), | ||
44 | |||
45 | [_RAISE] = LAYOUT_split_3x6_5( | ||
46 | KC_ESC , KC_PDOT , M_BBSLS , KC_BSLS , LSFT(KC_MINS), LSFT(KC_EQL), KC_HOME , KC_WH_L , KC_UP , KC_WH_R , KC_PGUP , KC_BSPC , | ||
47 | KC_TAB , LSFT(KC_1), LSFT(KC_2), LSFT(KC_3), LSFT(KC_4) , LSFT(KC_5) , M_FLEFT , KC_LEFT , KC_DOWN , KC_RIGHT, M_FRIGHT, KC_DEL , | ||
48 | LSFT(KC_TAB), LSFT(KC_6), LSFT(KC_7), LSFT(KC_8), LSFT(KC_9) , LSFT(KC_0) , KC_END , KC_F22 , KC_F23 , KC_CAPS , KC_PGDN , MO(_ADJUST), | ||
49 | KC_LGUI , KC_LCTL , KC_LSFT , KC_LALT , M_SHLL , M_SHLA , KC_TRNS , KC_SPC , KC_RALT , KC_ENT | ||
50 | ), | ||
51 | |||
52 | [_ADJUST] = LAYOUT_split_3x6_5( | ||
53 | KC_NO , KC_SLEP , KC_VOLU , KC_BRIU , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NLCK , | ||
54 | KC_NO , KC_WAKE , KC_VOLD , KC_BRID , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , | ||
55 | KC_NO , KC_NO , KC_NO , KC_F13 , KC_F14 , KC_F15 , KC_F16 , KC_F17 , KC_F18 , KC_NO , KC_NO , MO(_ADJUST), | ||
56 | RESET , KC_NO , KC_NO , KC_TRNS , KC_NO , KC_NO , KC_TRNS , KC_TRNS , KC_NO , KC_NO | ||
57 | ) | ||
58 | }; | ||
diff --git a/keyboards/handwired/elrgo_s/readme.md b/keyboards/handwired/elrgo_s/readme.md new file mode 100644 index 000000000..5fb5ab6ac --- /dev/null +++ b/keyboards/handwired/elrgo_s/readme.md | |||
@@ -0,0 +1,28 @@ | |||
1 | # Elrgo S Split Keyboard | ||
2 | |||
3 | This is a fork of the VOID Ergo S with QMK Configurator support. | ||
4 | |||
5 | Elrgo S uses 2x Arduino Pro Micro (ATmega32U4) with 3D printed case. | ||
6 | |||
7 | [Building guide, models for 3D printing](https://github.com/Eloren1/Elrgo_S) | ||
8 | |||
9 | * Keyboard Maintainer: [Eloren](https://github.com/Eloren1) | ||
10 | * Hardware Supported: Arduino Pro Micro | ||
11 | * Hardware Availability: [Open Source](https://github.com/Eloren1/Elrgo_S) | ||
12 | |||
13 | Make example for this keyboard (after setting up your build environment): | ||
14 | |||
15 | make handwired/elrgo_s:default | ||
16 | |||
17 | Flashing example for this keyboard: | ||
18 | |||
19 | make handwired/elrgo_s:default:flash | ||
20 | |||
21 | See 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). | ||
22 | |||
23 | ## Bootloader | ||
24 | |||
25 | Enter the bootloader in 2 ways: | ||
26 | |||
27 | * **Physical reset button**: Briefly press the button through the hole on the left side of the case. | ||
28 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available | ||
diff --git a/keyboards/handwired/elrgo_s/rules.mk b/keyboards/handwired/elrgo_s/rules.mk new file mode 100644 index 000000000..ed3ed34a4 --- /dev/null +++ b/keyboards/handwired/elrgo_s/rules.mk | |||
@@ -0,0 +1,23 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = caterina | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_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 | ||
18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||
23 | SPLIT_KEYBOARD = yes | ||