diff options
| author | Álvaro A. Volpato <alvaro.volpato@usp.br> | 2021-12-29 07:57:22 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-29 02:57:22 -0800 |
| commit | dea23720e67d95278830a1172dac57a4e502a050 (patch) | |
| tree | 11dada790ca5d4ad7292009b4b37d709d4fa60d8 /keyboards/mode | |
| parent | 9475767e7a0e0c6e0ceccc446bec848002d6fc77 (diff) | |
| download | qmk_firmware-dea23720e67d95278830a1172dac57a4e502a050.tar.gz qmk_firmware-dea23720e67d95278830a1172dac57a4e502a050.zip | |
[Keyboard] Add Mode Eighty M80v2 PCB support (#15486)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/mode')
| -rw-r--r-- | keyboards/mode/eighty/readme.md | 22 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/chconf.h (renamed from keyboards/mode/eighty/chconf.h) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/config.h (renamed from keyboards/mode/eighty/config.h) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/halconf.h (renamed from keyboards/mode/eighty/halconf.h) | 8 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80h/config.h (renamed from keyboards/mode/eighty/m80h/config.h) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80h/info.json (renamed from keyboards/mode/eighty/m80h/info.json) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80h/keymaps/default/keymap.c (renamed from keyboards/mode/eighty/m80h/keymaps/default/keymap.c) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80h/keymaps/via/keymap.c (renamed from keyboards/mode/eighty/m80h/keymaps/via/keymap.c) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80h/keymaps/via/rules.mk (renamed from keyboards/mode/eighty/m80h/keymaps/via/rules.mk) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80h/m80h.c (renamed from keyboards/mode/eighty/m80h/m80h.c) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80h/m80h.h (renamed from keyboards/mode/eighty/m80h/m80h.h) | 2 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80h/readme.md (renamed from keyboards/mode/eighty/m80h/readme.md) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80h/rules.mk (renamed from keyboards/mode/eighty/m80h/rules.mk) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80s/config.h (renamed from keyboards/mode/eighty/m80s/config.h) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80s/info.json (renamed from keyboards/mode/eighty/m80s/info.json) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80s/keymaps/default/keymap.c (renamed from keyboards/mode/eighty/m80s/keymaps/default/keymap.c) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80s/keymaps/via/keymap.c (renamed from keyboards/mode/eighty/m80s/keymaps/via/keymap.c) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80s/keymaps/via/rules.mk (renamed from keyboards/mode/eighty/m80s/keymaps/via/rules.mk) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80s/m80s.c (renamed from keyboards/mode/eighty/m80s/m80s.c) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80s/m80s.h (renamed from keyboards/mode/eighty/m80s/m80s.h) | 2 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80s/readme.md (renamed from keyboards/mode/eighty/m80s/readme.md) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80s/rules.mk (renamed from keyboards/mode/eighty/m80s/rules.mk) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80v1.c (renamed from keyboards/mode/eighty/eighty.c) | 2 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/m80v1.h (renamed from keyboards/mode/eighty/eighty.h) | 4 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/mcuconf.h (renamed from keyboards/mode/eighty/mcuconf.h) | 0 | ||||
| -rw-r--r-- | keyboards/mode/m80v1/readme.md | 38 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/chconf.h | 25 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/config.h | 45 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/halconf.h | 18 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2.c | 18 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2.h | 26 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2h/config.h | 2 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2h/info.json | 97 | ||||
| -rwxr-xr-x | keyboards/mode/m80v2/m80v2h/keymaps/default/keymap.c | 53 | ||||
| -rwxr-xr-x | keyboards/mode/m80v2/m80v2h/keymaps/via/keymap.c | 53 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2h/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2h/m80v2h.c | 18 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2h/m80v2h.h | 39 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2h/rules.mk | 21 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2s/config.h | 2 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2s/info.json | 101 | ||||
| -rwxr-xr-x | keyboards/mode/m80v2/m80v2s/keymaps/default/keymap.c | 53 | ||||
| -rwxr-xr-x | keyboards/mode/m80v2/m80v2s/keymaps/via/keymap.c | 53 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2s/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2s/m80v2s.c | 18 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2s/m80v2s.h | 39 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/m80v2s/rules.mk | 21 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/mcuconf.h | 19 | ||||
| -rw-r--r-- | keyboards/mode/m80v2/readme.md | 38 |
49 files changed, 804 insertions, 35 deletions
diff --git a/keyboards/mode/eighty/readme.md b/keyboards/mode/eighty/readme.md deleted file mode 100644 index 40df5adb5..000000000 --- a/keyboards/mode/eighty/readme.md +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | # Mode Eighty | ||
| 2 | |||
| 3 | \ | ||
| 4 | [Image Gallery](https://imgur.com/t/mechanicalkeyboards/8Uf6c2m?nc=1) | ||
| 5 | |||
| 6 | The Mode80 is a tenkeyless high-end keyboard sold by [Mode Designs](https://shop.modedesigns.com/). | ||
| 7 | |||
| 8 | * Keyboard Maintainer: [Gondolindrim](https://github.com/gondolindrim) | ||
| 9 | * Hardware Supported: proprietary PCB using STM32F072 controller | ||
| 10 | * Hardware Availability: you can get a Mode Eighty as of today (dec. 2020) through the in stock sales or special groupbuy editions at https://shop.modedesigns.com/ | ||
| 11 | |||
| 12 | Make example for this keyboard (after setting up your build environment): | ||
| 13 | |||
| 14 | make mode/eighty/m80h:default # Hotswap | ||
| 15 | make mode/eighty/m80s:default # Soldered | ||
| 16 | |||
| 17 | Flashing example for this keyboard: | ||
| 18 | |||
| 19 | make mode/eighty/m80h:default:flash # Hotswap | ||
| 20 | make mode/eighty/m80s:default:flash # Soldered | ||
| 21 | |||
| 22 | 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). | ||
diff --git a/keyboards/mode/eighty/chconf.h b/keyboards/mode/m80v1/chconf.h index fcc821b38..fcc821b38 100644 --- a/keyboards/mode/eighty/chconf.h +++ b/keyboards/mode/m80v1/chconf.h | |||
diff --git a/keyboards/mode/eighty/config.h b/keyboards/mode/m80v1/config.h index d0c61d119..d0c61d119 100644 --- a/keyboards/mode/eighty/config.h +++ b/keyboards/mode/m80v1/config.h | |||
diff --git a/keyboards/mode/eighty/halconf.h b/keyboards/mode/m80v1/halconf.h index eab8a300a..bd55942f8 100644 --- a/keyboards/mode/eighty/halconf.h +++ b/keyboards/mode/m80v1/halconf.h | |||
| @@ -14,14 +14,6 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | /* | ||
| 18 | * This file was auto-generated by: | ||
| 19 | * `qmk chibios-confmigrate -i keyboards/mode/eighty/halconf.h -r platforms/chibios/common/configs/halconf.h` | ||
| 20 | */ | ||
| 21 | |||
| 22 | #pragma once | 17 | #pragma once |
| 23 | 18 | ||
| 24 | #define HAL_USE_I2C TRUE | ||
| 25 | |||
| 26 | #include_next <halconf.h> | 19 | #include_next <halconf.h> |
| 27 | |||
diff --git a/keyboards/mode/eighty/m80h/config.h b/keyboards/mode/m80v1/m80h/config.h index b119ad4ff..b119ad4ff 100644 --- a/keyboards/mode/eighty/m80h/config.h +++ b/keyboards/mode/m80v1/m80h/config.h | |||
diff --git a/keyboards/mode/eighty/m80h/info.json b/keyboards/mode/m80v1/m80h/info.json index 97d588199..97d588199 100644 --- a/keyboards/mode/eighty/m80h/info.json +++ b/keyboards/mode/m80v1/m80h/info.json | |||
diff --git a/keyboards/mode/eighty/m80h/keymaps/default/keymap.c b/keyboards/mode/m80v1/m80h/keymaps/default/keymap.c index 95c2008ad..95c2008ad 100644 --- a/keyboards/mode/eighty/m80h/keymaps/default/keymap.c +++ b/keyboards/mode/m80v1/m80h/keymaps/default/keymap.c | |||
diff --git a/keyboards/mode/eighty/m80h/keymaps/via/keymap.c b/keyboards/mode/m80v1/m80h/keymaps/via/keymap.c index f2b74cb6e..f2b74cb6e 100644 --- a/keyboards/mode/eighty/m80h/keymaps/via/keymap.c +++ b/keyboards/mode/m80v1/m80h/keymaps/via/keymap.c | |||
diff --git a/keyboards/mode/eighty/m80h/keymaps/via/rules.mk b/keyboards/mode/m80v1/m80h/keymaps/via/rules.mk index 1e5b99807..1e5b99807 100644 --- a/keyboards/mode/eighty/m80h/keymaps/via/rules.mk +++ b/keyboards/mode/m80v1/m80h/keymaps/via/rules.mk | |||
diff --git a/keyboards/mode/eighty/m80h/m80h.c b/keyboards/mode/m80v1/m80h/m80h.c index 6213a9136..6213a9136 100644 --- a/keyboards/mode/eighty/m80h/m80h.c +++ b/keyboards/mode/m80v1/m80h/m80h.c | |||
diff --git a/keyboards/mode/eighty/m80h/m80h.h b/keyboards/mode/m80v1/m80h/m80h.h index 882099b1a..f3f4c5388 100644 --- a/keyboards/mode/eighty/m80h/m80h.h +++ b/keyboards/mode/m80v1/m80h/m80h.h | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | #pragma once | 14 | #pragma once |
| 15 | 15 | ||
| 16 | #include "eighty.h" | 16 | #include "m80v1.h" |
| 17 | 17 | ||
| 18 | #define LAYOUT_eighty_m80h( \ | 18 | #define LAYOUT_eighty_m80h( \ |
| 19 | K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K415, K114, K115, K116, \ | 19 | K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K415, K114, K115, K116, \ |
diff --git a/keyboards/mode/eighty/m80h/readme.md b/keyboards/mode/m80v1/m80h/readme.md index 02a3723b6..02a3723b6 100644 --- a/keyboards/mode/eighty/m80h/readme.md +++ b/keyboards/mode/m80v1/m80h/readme.md | |||
diff --git a/keyboards/mode/eighty/m80h/rules.mk b/keyboards/mode/m80v1/m80h/rules.mk index 56294f95f..56294f95f 100644 --- a/keyboards/mode/eighty/m80h/rules.mk +++ b/keyboards/mode/m80v1/m80h/rules.mk | |||
diff --git a/keyboards/mode/eighty/m80s/config.h b/keyboards/mode/m80v1/m80s/config.h index 3e7f2ec3a..3e7f2ec3a 100644 --- a/keyboards/mode/eighty/m80s/config.h +++ b/keyboards/mode/m80v1/m80s/config.h | |||
diff --git a/keyboards/mode/eighty/m80s/info.json b/keyboards/mode/m80v1/m80s/info.json index c586614a7..c586614a7 100644 --- a/keyboards/mode/eighty/m80s/info.json +++ b/keyboards/mode/m80v1/m80s/info.json | |||
diff --git a/keyboards/mode/eighty/m80s/keymaps/default/keymap.c b/keyboards/mode/m80v1/m80s/keymaps/default/keymap.c index 49fab527c..49fab527c 100644 --- a/keyboards/mode/eighty/m80s/keymaps/default/keymap.c +++ b/keyboards/mode/m80v1/m80s/keymaps/default/keymap.c | |||
diff --git a/keyboards/mode/eighty/m80s/keymaps/via/keymap.c b/keyboards/mode/m80v1/m80s/keymaps/via/keymap.c index 6db218594..6db218594 100644 --- a/keyboards/mode/eighty/m80s/keymaps/via/keymap.c +++ b/keyboards/mode/m80v1/m80s/keymaps/via/keymap.c | |||
diff --git a/keyboards/mode/eighty/m80s/keymaps/via/rules.mk b/keyboards/mode/m80v1/m80s/keymaps/via/rules.mk index 1e5b99807..1e5b99807 100644 --- a/keyboards/mode/eighty/m80s/keymaps/via/rules.mk +++ b/keyboards/mode/m80v1/m80s/keymaps/via/rules.mk | |||
diff --git a/keyboards/mode/eighty/m80s/m80s.c b/keyboards/mode/m80v1/m80s/m80s.c index 1f532d0ce..1f532d0ce 100644 --- a/keyboards/mode/eighty/m80s/m80s.c +++ b/keyboards/mode/m80v1/m80s/m80s.c | |||
diff --git a/keyboards/mode/eighty/m80s/m80s.h b/keyboards/mode/m80v1/m80s/m80s.h index 3799b5f61..b5d1e4dd0 100644 --- a/keyboards/mode/eighty/m80s/m80s.h +++ b/keyboards/mode/m80v1/m80s/m80s.h | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | #pragma once | 14 | #pragma once |
| 15 | 15 | ||
| 16 | #include "eighty.h" | 16 | #include "m80v1.h" |
| 17 | 17 | ||
| 18 | #define LAYOUT_eighty_m80s( \ | 18 | #define LAYOUT_eighty_m80s( \ |
| 19 | K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K415, K114, K115, K116, \ | 19 | K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K415, K114, K115, K116, \ |
diff --git a/keyboards/mode/eighty/m80s/readme.md b/keyboards/mode/m80v1/m80s/readme.md index 408401b56..408401b56 100644 --- a/keyboards/mode/eighty/m80s/readme.md +++ b/keyboards/mode/m80v1/m80s/readme.md | |||
diff --git a/keyboards/mode/eighty/m80s/rules.mk b/keyboards/mode/m80v1/m80s/rules.mk index 56294f95f..56294f95f 100644 --- a/keyboards/mode/eighty/m80s/rules.mk +++ b/keyboards/mode/m80v1/m80s/rules.mk | |||
diff --git a/keyboards/mode/eighty/eighty.c b/keyboards/mode/m80v1/m80v1.c index bde91d35a..225ed9cc8 100644 --- a/keyboards/mode/eighty/eighty.c +++ b/keyboards/mode/m80v1/m80v1.c | |||
| @@ -11,4 +11,4 @@ | |||
| 11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
| 12 | */ | 12 | */ |
| 13 | 13 | ||
| 14 | #include "eighty.h" | 14 | #include "m80v1.h" |
diff --git a/keyboards/mode/eighty/eighty.h b/keyboards/mode/m80v1/m80v1.h index b5f632885..704ea2843 100644 --- a/keyboards/mode/eighty/eighty.h +++ b/keyboards/mode/m80v1/m80v1.h | |||
| @@ -2,8 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | #include "quantum.h" | 3 | #include "quantum.h" |
| 4 | 4 | ||
| 5 | #if defined(KEYBOARD_mode_eighty_m80h) | 5 | #if defined(KEYBOARD_mode_m80v1_m80h) |
| 6 | #include "m80h.h" | 6 | #include "m80h.h" |
| 7 | #elif defined(KEYBOARD_mode_eighty_m80s) | 7 | #elif defined(KEYBOARD_mode_m80v1_m80s) |
| 8 | #include "m80s.h" | 8 | #include "m80s.h" |
| 9 | #endif // Mode80 solderable "S" and hotswap "H" revisions | 9 | #endif // Mode80 solderable "S" and hotswap "H" revisions |
diff --git a/keyboards/mode/eighty/mcuconf.h b/keyboards/mode/m80v1/mcuconf.h index e1aaa8df3..e1aaa8df3 100644 --- a/keyboards/mode/eighty/mcuconf.h +++ b/keyboards/mode/m80v1/mcuconf.h | |||
diff --git a/keyboards/mode/m80v1/readme.md b/keyboards/mode/m80v1/readme.md new file mode 100644 index 000000000..5435a02e6 --- /dev/null +++ b/keyboards/mode/m80v1/readme.md | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | # Mode Eighty V1 PCB QMK firmware | ||
| 2 | |||
| 3 | \ | ||
| 4 | [Image Gallery](https://imgur.com/t/mechanicalkeyboards/8Uf6c2m?nc=1) | ||
| 5 | |||
| 6 | The Mode80 is a tenkeyless high-end keyboard sold by [Mode Designs](https://shop.modedesigns.com/). | ||
| 7 | |||
| 8 | * Keyboard Maintainer: [Gondolindrim](https://github.com/gondolindrim) | ||
| 9 | * Hardware Supported: proprietary PCB using STM32F072 controller | ||
| 10 | * Hardware Availability: the Mode Eighty V1 was discontinued in 2021 in favour of its second revisions. You can still buy hardware (PCBs and plates) at the Mode Designs website. | ||
| 11 | |||
| 12 | ## How to flash | ||
| 13 | |||
| 14 | ### Enter bootloader | ||
| 15 | |||
| 16 | The DFU state in the bootloader can be accessed in 3 ways: | ||
| 17 | |||
| 18 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard | ||
| 19 | * **Physical reset button**: press the button on the front of the PCB, next to caps lock, for at least five seconds | ||
| 20 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available (ESC key at layer 1 in the default layout) | ||
| 21 | |||
| 22 | ## Compile firmware | ||
| 23 | |||
| 24 | After accessing the DFU state in your PCB, build the default layout using: | ||
| 25 | |||
| 26 | make mode/m80v1/m80h:default # Hotswap | ||
| 27 | make mode/m80v1/m80s:default # Soldered | ||
| 28 | |||
| 29 | Then download the resulting binary `*bin` file using `dfu-util` or QMK Toolbox. | ||
| 30 | |||
| 31 | ## Compile and flash | ||
| 32 | |||
| 33 | After accessing the DFU state in your PCB, you can compile-and-flash automatically usind `dfu-util` through | ||
| 34 | |||
| 35 | make mode/m80v1/m80h:default:flash # Hotswap | ||
| 36 | make mode/m80v1/m80s:default:flash # Soldered | ||
| 37 | |||
| 38 | 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). | ||
diff --git a/keyboards/mode/m80v2/chconf.h b/keyboards/mode/m80v2/chconf.h new file mode 100644 index 000000000..cbbae3107 --- /dev/null +++ b/keyboards/mode/m80v2/chconf.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 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 CH_CFG_ST_FREQUENCY 10000 | ||
| 20 | |||
| 21 | #define CH_CFG_OPTIMIZE_SPEED FALSE | ||
| 22 | |||
| 23 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
| 24 | |||
| 25 | #include_next <chconf.h> | ||
diff --git a/keyboards/mode/m80v2/config.h b/keyboards/mode/m80v2/config.h new file mode 100644 index 000000000..fbe5fb86d --- /dev/null +++ b/keyboards/mode/m80v2/config.h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
| 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 | /* USB Device descriptor parameter */ | ||
| 21 | #define VENDOR_ID 0x00DE | ||
| 22 | #define DEVICE_VER 0x0002 | ||
| 23 | #define MANUFACTURER Mode | ||
| 24 | |||
| 25 | /* key matrix size */ | ||
| 26 | #define MATRIX_ROWS 6 | ||
| 27 | #define MATRIX_COLS 17 | ||
| 28 | |||
| 29 | #define MATRIX_ROW_PINS { B12, B13, B14, B3, B4, B9 } | ||
| 30 | #define MATRIX_COL_PINS { A1, A2, A3, A4, A5, A6, A7, B0, B1, B10, A8, A10, B15, A15, B5, B8, C13 } | ||
| 31 | |||
| 32 | #define DIODE_DIRECTION COL2ROW | ||
| 33 | |||
| 34 | /* define if matrix has ghost */ | ||
| 35 | //#define MATRIX_HAS_GHOST | ||
| 36 | |||
| 37 | /* Set 0 if debouncing isn't needed */ | ||
| 38 | #define DEBOUNCE 5 | ||
| 39 | |||
| 40 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 41 | #define LOCKING_SUPPORT_ENABLE | ||
| 42 | /* Locking resynchronize hack */ | ||
| 43 | #define LOCKING_RESYNC_ENABLE | ||
| 44 | |||
| 45 | #define LED_CAPS_LOCK_PIN A0 | ||
diff --git a/keyboards/mode/m80v2/halconf.h b/keyboards/mode/m80v2/halconf.h new file mode 100644 index 000000000..3aeb26b0e --- /dev/null +++ b/keyboards/mode/m80v2/halconf.h | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include_next <halconf.h> | ||
diff --git a/keyboards/mode/m80v2/m80v2.c b/keyboards/mode/m80v2/m80v2.c new file mode 100644 index 000000000..faad98b7a --- /dev/null +++ b/keyboards/mode/m80v2/m80v2.c | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
| 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 | #include "m80v2.h" | ||
diff --git a/keyboards/mode/m80v2/m80v2.h b/keyboards/mode/m80v2/m80v2.h new file mode 100644 index 000000000..c00f148e6 --- /dev/null +++ b/keyboards/mode/m80v2/m80v2.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
| 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 "quantum.h" | ||
| 21 | |||
| 22 | #if defined(KEYBOARD_mode_m80v2_m80v2h) | ||
| 23 | #include "m80v2h.h" | ||
| 24 | #elif defined(KEYBOARD_mode_m80v2_m80v2s) | ||
| 25 | #include "m80v2s.h" | ||
| 26 | #endif | ||
diff --git a/keyboards/mode/m80v2/m80v2h/config.h b/keyboards/mode/m80v2/m80v2h/config.h new file mode 100644 index 000000000..f474e2845 --- /dev/null +++ b/keyboards/mode/m80v2/m80v2h/config.h | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | #define PRODUCT_ID 0x0083 // 81 was used for M80H V1 | ||
| 2 | #define PRODUCT M80H V2 | ||
diff --git a/keyboards/mode/m80v2/m80v2h/info.json b/keyboards/mode/m80v2/m80v2h/info.json new file mode 100644 index 000000000..251937c56 --- /dev/null +++ b/keyboards/mode/m80v2/m80v2h/info.json | |||
| @@ -0,0 +1,97 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "MODE80V2H", | ||
| 3 | "url": "https://shop.modedesigns.com/collections/eighty", | ||
| 4 | "maintainer": "Gondolindrim", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT_m80v2h": { | ||
| 7 | "layout": [ | ||
| 8 | {"label":"Esc", "x":0, "y":0}, | ||
| 9 | {"label":"F1", "x":2, "y":0}, | ||
| 10 | {"label":"F2", "x":3, "y":0}, | ||
| 11 | {"label":"F3", "x":4, "y":0}, | ||
| 12 | {"label":"F4", "x":5, "y":0}, | ||
| 13 | {"label":"F5", "x":6.5, "y":0}, | ||
| 14 | {"label":"F6", "x":7.5, "y":0}, | ||
| 15 | {"label":"F7", "x":8.5, "y":0}, | ||
| 16 | {"label":"F8", "x":9.5, "y":0}, | ||
| 17 | {"label":"F9", "x":11, "y":0}, | ||
| 18 | {"label":"F10", "x":12, "y":0}, | ||
| 19 | {"label":"F11", "x":13, "y":0}, | ||
| 20 | {"label":"F12", "x":14, "y":0}, | ||
| 21 | {"label":"Bkspc", "x":13, "y":1.5, "w": 2}, | ||
| 22 | {"label":"Mute", "x":15.25, "y":0}, | ||
| 23 | {"label":"VolDn", "x":16.25, "y":0}, | ||
| 24 | {"label":"VolUp", "x":17.25, "y":0}, | ||
| 25 | {"label":"~", "x":0, "y":1.5}, | ||
| 26 | {"label":"1", "x":1, "y":1.5}, | ||
| 27 | {"label":"2", "x":2, "y":1.5}, | ||
| 28 | {"label":"3", "x":3, "y":1.5}, | ||
| 29 | {"label":"4", "x":4, "y":1.5}, | ||
| 30 | {"label":"5", "x":5, "y":1.5}, | ||
| 31 | {"label":"6", "x":6, "y":1.5}, | ||
| 32 | {"label":"7", "x":7, "y":1.5}, | ||
| 33 | {"label":"8", "x":8, "y":1.5}, | ||
| 34 | {"label":"9", "x":9, "y":1.5}, | ||
| 35 | {"label":"0", "x":10, "y":1.5}, | ||
| 36 | {"label":"_", "x":11, "y":1.5}, | ||
| 37 | {"label":"+", "x":12, "y":1.5}, | ||
| 38 | {"label":"Insert", "x":15.25, "y":1.5}, | ||
| 39 | {"label":"Home", "x":16.25, "y":1.5}, | ||
| 40 | {"label":"PgUp", "x":17.25, "y":1.5}, | ||
| 41 | {"label":"Tab", "x":0, "y":2.5, "w":1.5}, | ||
| 42 | {"label":"Q", "x":1.5, "y":2.5}, | ||
| 43 | {"label":"W", "x":2.5, "y":2.5}, | ||
| 44 | {"label":"E", "x":3.5, "y":2.5}, | ||
| 45 | {"label":"R", "x":4.5, "y":2.5}, | ||
| 46 | {"label":"T", "x":5.5, "y":2.5}, | ||
| 47 | {"label":"Y", "x":6.5, "y":2.5}, | ||
| 48 | {"label":"U", "x":7.5, "y":2.5}, | ||
| 49 | {"label":"I", "x":8.5, "y":2.5}, | ||
| 50 | {"label":"O", "x":9.5, "y":2.5}, | ||
| 51 | {"label":"P", "x":10.5, "y":2.5}, | ||
| 52 | {"label":"{", "x":11.5, "y":2.5}, | ||
| 53 | {"label":"}", "x":12.5, "y":2.5}, | ||
| 54 | {"label":"|", "x":13.5, "y":2.5, "w":1.5}, | ||
| 55 | {"label":"Delete", "x":15.25, "y":2.5}, | ||
| 56 | {"label":"End", "x":16.25, "y":2.5}, | ||
| 57 | {"label":"PgDn", "x":17.25, "y":2.5}, | ||
| 58 | {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, | ||
| 59 | {"label":"A", "x":1.75, "y":3.5}, | ||
| 60 | {"label":"S", "x":2.75, "y":3.5}, | ||
| 61 | {"label":"D", "x":3.75, "y":3.5}, | ||
| 62 | {"label":"F", "x":4.75, "y":3.5}, | ||
| 63 | {"label":"G", "x":5.75, "y":3.5}, | ||
| 64 | {"label":"H", "x":6.75, "y":3.5}, | ||
| 65 | {"label":"J", "x":7.75, "y":3.5}, | ||
| 66 | {"label":"K", "x":8.75, "y":3.5}, | ||
| 67 | {"label":"L", "x":9.75, "y":3.5}, | ||
| 68 | {"label":":", "x":10.75, "y":3.5}, | ||
| 69 | {"label":"\"", "x":11.75, "y":3.5}, | ||
| 70 | {"label":"Enter", "x":12.75, "y":3.5, "w":2.25}, | ||
| 71 | {"label":"Shift", "x":0, "y":4.5, "w":2.25}, | ||
| 72 | {"label":"Z", "x":2.25, "y":4.5}, | ||
| 73 | {"label":"X", "x":3.25, "y":4.5}, | ||
| 74 | {"label":"C", "x":4.25, "y":4.5}, | ||
| 75 | {"label":"V", "x":5.25, "y":4.5}, | ||
| 76 | {"label":"B", "x":6.25, "y":4.5}, | ||
| 77 | {"label":"N", "x":7.25, "y":4.5}, | ||
| 78 | {"label":"M", "x":8.25, "y":4.5}, | ||
| 79 | {"label":",", "x":9.25, "y":4.5}, | ||
| 80 | {"label":".", "x":10.25, "y":4.5}, | ||
| 81 | {"label":"/", "x":11.25, "y":4.5}, | ||
| 82 | {"label":"Shift", "x":12.25, "y":4.5, "w":2.75}, | ||
| 83 | {"label":"\u2191", "x":16.25, "y":4.5}, | ||
| 84 | {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, | ||
| 85 | {"label":"Win", "x":1.25, "y":5.5, "w":1.25}, | ||
| 86 | {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, | ||
| 87 | {"x":3.75, "y":5.5, "w":6.25}, | ||
| 88 | {"label":"Alt", "x":10, "y":5.5, "w":1.25}, | ||
| 89 | {"label":"Win", "x":11.25, "y":5.5, "w":1.25}, | ||
| 90 | {"label":"FN1", "x":12.5, "y":5.5, "w":1.25}, | ||
| 91 | {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, | ||
| 92 | {"label":"\u2190", "x":15.25, "y":5.5}, | ||
| 93 | {"label":"\u2193", "x":16.25, "y":5.5}, | ||
| 94 | {"label":"\u2192", "x":17.25, "y":5.5}] | ||
| 95 | } | ||
| 96 | } | ||
| 97 | } | ||
diff --git a/keyboards/mode/m80v2/m80v2h/keymaps/default/keymap.c b/keyboards/mode/m80v2/m80v2h/keymaps/default/keymap.c new file mode 100755 index 000000000..f65309dfc --- /dev/null +++ b/keyboards/mode/m80v2/m80v2h/keymaps/default/keymap.c | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT_m80v2h( | ||
| 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 , KC_BSPC, KC_MUTE, KC_VOLD , KC_VOLU , | ||
| 23 | KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_EQL , KC_INS , KC_HOME , KC_PGUP , | ||
| 24 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL , KC_END , KC_PGDN , | ||
| 25 | KC_CAPS, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, KC_ENT , | ||
| 26 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, KC_UP , | ||
| 27 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC , KC_RALT, KC_RGUI, MO(1) , KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 28 | ), | ||
| 29 | [1] = LAYOUT_m80v2h( | ||
| 30 | RESET , 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, KC_TRNS, KC_TRNS, | ||
| 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 33 | 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, | ||
| 34 | 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, | ||
| 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 | [2] = LAYOUT_m80v2h( | ||
| 38 | 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, 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 42 | 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, | ||
| 43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 44 | ), | ||
| 45 | [3] = LAYOUT_m80v2h( | ||
| 46 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 47 | 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, KC_TRNS, KC_TRNS, | ||
| 48 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 49 | 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, | ||
| 50 | 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, | ||
| 51 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 52 | ), | ||
| 53 | }; | ||
diff --git a/keyboards/mode/m80v2/m80v2h/keymaps/via/keymap.c b/keyboards/mode/m80v2/m80v2h/keymaps/via/keymap.c new file mode 100755 index 000000000..f65309dfc --- /dev/null +++ b/keyboards/mode/m80v2/m80v2h/keymaps/via/keymap.c | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT_m80v2h( | ||
| 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 , KC_BSPC, KC_MUTE, KC_VOLD , KC_VOLU , | ||
| 23 | KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_EQL , KC_INS , KC_HOME , KC_PGUP , | ||
| 24 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL , KC_END , KC_PGDN , | ||
| 25 | KC_CAPS, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, KC_ENT , | ||
| 26 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, KC_UP , | ||
| 27 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC , KC_RALT, KC_RGUI, MO(1) , KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 28 | ), | ||
| 29 | [1] = LAYOUT_m80v2h( | ||
| 30 | RESET , 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, KC_TRNS, KC_TRNS, | ||
| 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 33 | 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, | ||
| 34 | 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, | ||
| 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 | [2] = LAYOUT_m80v2h( | ||
| 38 | 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, 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 42 | 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, | ||
| 43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 44 | ), | ||
| 45 | [3] = LAYOUT_m80v2h( | ||
| 46 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 47 | 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, KC_TRNS, KC_TRNS, | ||
| 48 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 49 | 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, | ||
| 50 | 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, | ||
| 51 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 52 | ), | ||
| 53 | }; | ||
diff --git a/keyboards/mode/m80v2/m80v2h/keymaps/via/rules.mk b/keyboards/mode/m80v2/m80v2h/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/mode/m80v2/m80v2h/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/mode/m80v2/m80v2h/m80v2h.c b/keyboards/mode/m80v2/m80v2h/m80v2h.c new file mode 100644 index 000000000..0d4e533c3 --- /dev/null +++ b/keyboards/mode/m80v2/m80v2h/m80v2h.c | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
| 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 | #include "m80v2h.h" | ||
diff --git a/keyboards/mode/m80v2/m80v2h/m80v2h.h b/keyboards/mode/m80v2/m80v2h/m80v2h.h new file mode 100644 index 000000000..6a21b8cec --- /dev/null +++ b/keyboards/mode/m80v2/m80v2h/m80v2h.h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
| 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 "m80v2.h" | ||
| 21 | |||
| 22 | #define ___ KC_NO | ||
| 23 | |||
| 24 | #define LAYOUT_m80v2h( \ | ||
| 25 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, \ | ||
| 26 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1E, K1F, K1G, \ | ||
| 27 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, \ | ||
| 28 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3D, \ | ||
| 29 | K40, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4F, \ | ||
| 30 | K50, K51, K52, K56, K5A, K5B, K5C, K5D, K5E, K5F, K5G \ | ||
| 31 | )\ | ||
| 32 | {\ | ||
| 33 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G }, \ | ||
| 34 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, ___, K1E, K1F, K1G }, \ | ||
| 35 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G }, \ | ||
| 36 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, ___, K3D, ___, ___, ___ }, \ | ||
| 37 | { K40, ___, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, ___, ___, K4F, ___ }, \ | ||
| 38 | { K50, K51, K52, ___, ___, ___, K56, ___, ___, ___, K5A, K5B, K5C, K5D, K5E, K5F, K5G } \ | ||
| 39 | } | ||
diff --git a/keyboards/mode/m80v2/m80v2h/rules.mk b/keyboards/mode/m80v2/m80v2h/rules.mk new file mode 100644 index 000000000..5422160c8 --- /dev/null +++ b/keyboards/mode/m80v2/m80v2h/rules.mk | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F072 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = stm32-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = no # 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 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 18 | AUDIO_ENABLE = no # Audio output | ||
| 19 | |||
| 20 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
| 21 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE -DDEBUG_EEPROM_OUTPUT=TRUE | ||
diff --git a/keyboards/mode/m80v2/m80v2s/config.h b/keyboards/mode/m80v2/m80v2s/config.h new file mode 100644 index 000000000..ad1871f8a --- /dev/null +++ b/keyboards/mode/m80v2/m80v2s/config.h | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | #define PRODUCT_ID 0x0082 // 81 was used for M80H V1 | ||
| 2 | #define PRODUCT M80S V2 | ||
diff --git a/keyboards/mode/m80v2/m80v2s/info.json b/keyboards/mode/m80v2/m80v2s/info.json new file mode 100644 index 000000000..6e0bd62d5 --- /dev/null +++ b/keyboards/mode/m80v2/m80v2s/info.json | |||
| @@ -0,0 +1,101 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "MODE80V2S", | ||
| 3 | "url": "https://shop.modedesigns.com/collections/eighty", | ||
| 4 | "maintainer": "Gondolindrim", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT_m80v2s": { | ||
| 7 | "layout": [ | ||
| 8 | {"label":"Esc", "x":0, "y":0}, | ||
| 9 | {"label":"F1", "x":2, "y":0}, | ||
| 10 | {"label":"F2", "x":3, "y":0}, | ||
| 11 | {"label":"F3", "x":4, "y":0}, | ||
| 12 | {"label":"F4", "x":5, "y":0}, | ||
| 13 | {"label":"F5", "x":6.5, "y":0}, | ||
| 14 | {"label":"F6", "x":7.5, "y":0}, | ||
| 15 | {"label":"F7", "x":8.5, "y":0}, | ||
| 16 | {"label":"F8", "x":9.5, "y":0}, | ||
| 17 | {"label":"F9", "x":11, "y":0}, | ||
| 18 | {"label":"F10", "x":12, "y":0}, | ||
| 19 | {"label":"F11", "x":13, "y":0}, | ||
| 20 | {"label":"F12", "x":14, "y":0}, | ||
| 21 | {"label": "LBkspc", "x":13, "y":1.5}, | ||
| 22 | {"label":"Mute", "x":15.25, "y":0}, | ||
| 23 | {"label":"VolDn", "x":16.25, "y":0}, | ||
| 24 | {"label":"VolUp", "x":17.25, "y":0}, | ||
| 25 | {"label":"~", "x":0, "y":1.5}, | ||
| 26 | {"label":"1", "x":1, "y":1.5}, | ||
| 27 | {"label":"2", "x":2, "y":1.5}, | ||
| 28 | {"label":"3", "x":3, "y":1.5}, | ||
| 29 | {"label":"4", "x":4, "y":1.5}, | ||
| 30 | {"label":"5", "x":5, "y":1.5}, | ||
| 31 | {"label":"6", "x":6, "y":1.5}, | ||
| 32 | {"label":"7", "x":7, "y":1.5}, | ||
| 33 | {"label":"8", "x":8, "y":1.5}, | ||
| 34 | {"label":"9", "x":9, "y":1.5}, | ||
| 35 | {"label":"0", "x":10, "y":1.5}, | ||
| 36 | {"label":"_", "x":11, "y":1.5}, | ||
| 37 | {"label":"+", "x":12, "y":1.5}, | ||
| 38 | {"label": "RBkspc", "x":14, "y":1.5}, | ||
| 39 | {"label":"Insert", "x":15.25, "y":1.5}, | ||
| 40 | {"label":"Home", "x":16.25, "y":1.5}, | ||
| 41 | {"label":"PgUp", "x":17.25, "y":1.5}, | ||
| 42 | {"label":"Tab", "x":0, "y":2.5, "w":1.5}, | ||
| 43 | {"label":"Q", "x":1.5, "y":2.5}, | ||
| 44 | {"label":"W", "x":2.5, "y":2.5}, | ||
| 45 | {"label":"E", "x":3.5, "y":2.5}, | ||
| 46 | {"label":"R", "x":4.5, "y":2.5}, | ||
| 47 | {"label":"T", "x":5.5, "y":2.5}, | ||
| 48 | {"label":"Y", "x":6.5, "y":2.5}, | ||
| 49 | {"label":"U", "x":7.5, "y":2.5}, | ||
| 50 | {"label":"I", "x":8.5, "y":2.5}, | ||
| 51 | {"label":"O", "x":9.5, "y":2.5}, | ||
| 52 | {"label":"P", "x":10.5, "y":2.5}, | ||
| 53 | {"label":"{", "x":11.5, "y":2.5}, | ||
| 54 | {"label":"}", "x":12.5, "y":2.5}, | ||
| 55 | {"label":"|", "x":13.5, "y":2.5, "w":1.5}, | ||
| 56 | {"label":"Delete", "x":15.25, "y":2.5}, | ||
| 57 | {"label":"End", "x":16.25, "y":2.5}, | ||
| 58 | {"label":"PgDn", "x":17.25, "y":2.5}, | ||
| 59 | {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, | ||
| 60 | {"label":"A", "x":1.75, "y":3.5}, | ||
| 61 | {"label":"S", "x":2.75, "y":3.5}, | ||
| 62 | {"label":"D", "x":3.75, "y":3.5}, | ||
| 63 | {"label":"F", "x":4.75, "y":3.5}, | ||
| 64 | {"label":"G", "x":5.75, "y":3.5}, | ||
| 65 | {"label":"H", "x":6.75, "y":3.5}, | ||
| 66 | {"label":"J", "x":7.75, "y":3.5}, | ||
| 67 | {"label":"K", "x":8.75, "y":3.5}, | ||
| 68 | {"label":"L", "x":9.75, "y":3.5}, | ||
| 69 | {"label":":", "x":10.75, "y":3.5}, | ||
| 70 | {"label":"\"", "x":11.75, "y":3.5}, | ||
| 71 | {"label":"NUBS", "x":12.75, "y":3.5}, | ||
| 72 | {"label":"Enter", "x":12.75, "y":3.5, "w":2.25}, | ||
| 73 | {"label":"Shift", "x":0, "y":4.5, "w":1.25}, | ||
| 74 | {"label":"NUHS", "x":1.25, "y":4.5}, | ||
| 75 | {"label":"Z", "x":2.25, "y":4.5}, | ||
| 76 | {"label":"X", "x":3.25, "y":4.5}, | ||
| 77 | {"label":"C", "x":4.25, "y":4.5}, | ||
| 78 | {"label":"V", "x":5.25, "y":4.5}, | ||
| 79 | {"label":"B", "x":6.25, "y":4.5}, | ||
| 80 | {"label":"N", "x":7.25, "y":4.5}, | ||
| 81 | {"label":"M", "x":8.25, "y":4.5}, | ||
| 82 | {"label":",", "x":9.25, "y":4.5}, | ||
| 83 | {"label":".", "x":10.25, "y":4.5}, | ||
| 84 | {"label":"/", "x":11.25, "y":4.5}, | ||
| 85 | {"label":"Shift", "x":12.25, "y":4.5, "w":1.75}, | ||
| 86 | {"label":"FN1", "x":14, "y":4.5}, | ||
| 87 | {"label":"\u2191", "x":16.25, "y":4.5}, | ||
| 88 | {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, | ||
| 89 | {"label":"Win", "x":1.25, "y":5.5, "w":1.25}, | ||
| 90 | {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, | ||
| 91 | {"x":3.75, "y":5.5, "w":6.25}, | ||
| 92 | {"label":"Alt", "x":10, "y":5.5, "w":1.25}, | ||
| 93 | {"label":"Win", "x":11.25, "y":5.5, "w":1.25}, | ||
| 94 | {"label":"FN1", "x":12.5, "y":5.5, "w":1.25}, | ||
| 95 | {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, | ||
| 96 | {"label":"\u2190", "x":15.25, "y":5.5}, | ||
| 97 | {"label":"\u2193", "x":16.25, "y":5.5}, | ||
| 98 | {"label":"\u2192", "x":17.25, "y":5.5}] | ||
| 99 | } | ||
| 100 | } | ||
| 101 | } | ||
diff --git a/keyboards/mode/m80v2/m80v2s/keymaps/default/keymap.c b/keyboards/mode/m80v2/m80v2s/keymaps/default/keymap.c new file mode 100755 index 000000000..fcb05df0c --- /dev/null +++ b/keyboards/mode/m80v2/m80v2s/keymaps/default/keymap.c | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT_m80v2s( | ||
| 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 , KC_BSPC, KC_MUTE, KC_VOLD , KC_VOLU , | ||
| 23 | KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_EQL , KC_BSPC, KC_INS , KC_HOME , KC_PGUP , | ||
| 24 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL , KC_END , KC_PGDN , | ||
| 25 | KC_CAPS, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT , | ||
| 26 | KC_LSFT, KC_BSLS, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, MO(1) , KC_UP , | ||
| 27 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC , KC_RALT, KC_RGUI, MO(1) , KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 28 | ), | ||
| 29 | [1] = LAYOUT_m80v2s( | ||
| 30 | RESET , 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, KC_TRNS, KC_TRNS, | ||
| 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 33 | 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, | ||
| 34 | 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, 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 | [2] = LAYOUT_m80v2s( | ||
| 38 | 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, 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 42 | 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, KC_TRNS, | ||
| 43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 44 | ), | ||
| 45 | [3] = LAYOUT_m80v2s( | ||
| 46 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 47 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 48 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 49 | 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, | ||
| 50 | 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, KC_TRNS, | ||
| 51 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 52 | ) | ||
| 53 | }; | ||
diff --git a/keyboards/mode/m80v2/m80v2s/keymaps/via/keymap.c b/keyboards/mode/m80v2/m80v2s/keymaps/via/keymap.c new file mode 100755 index 000000000..fcb05df0c --- /dev/null +++ b/keyboards/mode/m80v2/m80v2s/keymaps/via/keymap.c | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT_m80v2s( | ||
| 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 , KC_BSPC, KC_MUTE, KC_VOLD , KC_VOLU , | ||
| 23 | KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_EQL , KC_BSPC, KC_INS , KC_HOME , KC_PGUP , | ||
| 24 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL , KC_END , KC_PGDN , | ||
| 25 | KC_CAPS, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT , | ||
| 26 | KC_LSFT, KC_BSLS, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, MO(1) , KC_UP , | ||
| 27 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC , KC_RALT, KC_RGUI, MO(1) , KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 28 | ), | ||
| 29 | [1] = LAYOUT_m80v2s( | ||
| 30 | RESET , 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, KC_TRNS, KC_TRNS, | ||
| 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 33 | 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, | ||
| 34 | 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, 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 | [2] = LAYOUT_m80v2s( | ||
| 38 | 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, 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 42 | 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, KC_TRNS, | ||
| 43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 44 | ), | ||
| 45 | [3] = LAYOUT_m80v2s( | ||
| 46 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 47 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 48 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 49 | 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, | ||
| 50 | 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, KC_TRNS, | ||
| 51 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 52 | ) | ||
| 53 | }; | ||
diff --git a/keyboards/mode/m80v2/m80v2s/keymaps/via/rules.mk b/keyboards/mode/m80v2/m80v2s/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/mode/m80v2/m80v2s/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/mode/m80v2/m80v2s/m80v2s.c b/keyboards/mode/m80v2/m80v2s/m80v2s.c new file mode 100644 index 000000000..7be89b128 --- /dev/null +++ b/keyboards/mode/m80v2/m80v2s/m80v2s.c | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
| 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 | #include "m80v2s.h" | ||
diff --git a/keyboards/mode/m80v2/m80v2s/m80v2s.h b/keyboards/mode/m80v2/m80v2s/m80v2s.h new file mode 100644 index 000000000..440b54583 --- /dev/null +++ b/keyboards/mode/m80v2/m80v2s/m80v2s.h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
| 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 "m80v2.h" | ||
| 21 | |||
| 22 | #define ___ KC_NO | ||
| 23 | |||
| 24 | #define LAYOUT_m80v2s( \ | ||
| 25 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, \ | ||
| 26 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, \ | ||
| 27 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, \ | ||
| 28 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \ | ||
| 29 | K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, K4F, \ | ||
| 30 | K50, K51, K52, K56, K5A, K5B, K5C, K5D, K5E, K5F, K5G \ | ||
| 31 | )\ | ||
| 32 | {\ | ||
| 33 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G }, \ | ||
| 34 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G }, \ | ||
| 35 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G }, \ | ||
| 36 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, ___, ___, ___ }, \ | ||
| 37 | { K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, ___, K4F, ___ }, \ | ||
| 38 | { K50, K51, K52, ___, ___, ___, K56, ___, ___, ___, K5A, K5B, K5C, K5D, K5E, K5F, K5G } \ | ||
| 39 | } | ||
diff --git a/keyboards/mode/m80v2/m80v2s/rules.mk b/keyboards/mode/m80v2/m80v2s/rules.mk new file mode 100644 index 000000000..5422160c8 --- /dev/null +++ b/keyboards/mode/m80v2/m80v2s/rules.mk | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F072 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = stm32-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = no # 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 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 18 | AUDIO_ENABLE = no # Audio output | ||
| 19 | |||
| 20 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
| 21 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE -DDEBUG_EEPROM_OUTPUT=TRUE | ||
diff --git a/keyboards/mode/m80v2/mcuconf.h b/keyboards/mode/m80v2/mcuconf.h new file mode 100644 index 000000000..6d5ee13d3 --- /dev/null +++ b/keyboards/mode/m80v2/mcuconf.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 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_next <mcuconf.h> | ||
diff --git a/keyboards/mode/m80v2/readme.md b/keyboards/mode/m80v2/readme.md new file mode 100644 index 000000000..e94984f06 --- /dev/null +++ b/keyboards/mode/m80v2/readme.md | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | # Mode Eighty V2 PCB QMK firmware | ||
| 2 | |||
| 3 | \ | ||
| 4 | [Image Gallery](https://imgur.com/t/mechanicalkeyboards/8Uf6c2m?nc=1) | ||
| 5 | |||
| 6 | The Mode80 is a tenkeyless high-end keyboard sold by [Mode Designs](https://shop.modedesigns.com/). | ||
| 7 | |||
| 8 | * Keyboard Maintainer: [Gondolindrim](https://github.com/gondolindrim) | ||
| 9 | * Hardware Supported: proprietary PCB using STM32F072 controller | ||
| 10 | * Hardware Availability: you can get a Mode Eighty as of today (dec. 2021) through the in stock sales or special groupbuy editions at https://shop.modedesigns.com/ | ||
| 11 | |||
| 12 | ## How to flash | ||
| 13 | |||
| 14 | ### Enter bootloader | ||
| 15 | |||
| 16 | The DFU state in the bootloader can be accessed in 3 ways: | ||
| 17 | |||
| 18 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard | ||
| 19 | * **Physical reset button**: press the button on the front of the PCB, next to caps lock, for at least five seconds | ||
| 20 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available (ESC key at layer 1 in the default layout) | ||
| 21 | |||
| 22 | ## Compile firmware | ||
| 23 | |||
| 24 | After accessing the DFU state in your PCB, build the default layout using: | ||
| 25 | |||
| 26 | make mode/m80v2/m80v2h:default # Hotswap | ||
| 27 | make mode/m80v2/m80v2s:default # Soldered | ||
| 28 | |||
| 29 | Then download the resulting binary `*bin` file using `dfu-util` or QMK Toolbox. | ||
| 30 | |||
| 31 | ## Compile and flash | ||
| 32 | |||
| 33 | After accessing the DFU state in your PCB, you can compile-and-flash automatically usind `dfu-util` through | ||
| 34 | |||
| 35 | make mode/m80v2/m80v2h:default:flash # Hotswap | ||
| 36 | make mode/m80v2/m80v2s:default:flash # Soldered | ||
| 37 | |||
| 38 | 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). | ||
