[Keyboard] Add Mode Eighty M80v2 PCB support (#15486)

Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
Álvaro A. Volpato 2021-12-29 07:57:22 -03:00 committed by GitHub
parent 9475767e7a
commit dea23720e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
49 changed files with 804 additions and 35 deletions

View File

@ -1,22 +0,0 @@
# Mode Eighty
![MODE80](https://i.imgur.com/26uzM3yl.jpg)\
[Image Gallery](https://imgur.com/t/mechanicalkeyboards/8Uf6c2m?nc=1)
The Mode80 is a tenkeyless high-end keyboard sold by [Mode Designs](https://shop.modedesigns.com/).
* Keyboard Maintainer: [Gondolindrim](https://github.com/gondolindrim)
* Hardware Supported: proprietary PCB using STM32F072 controller
* 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/
Make example for this keyboard (after setting up your build environment):
make mode/eighty/m80h:default # Hotswap
make mode/eighty/m80s:default # Soldered
Flashing example for this keyboard:
make mode/eighty/m80h:default:flash # Hotswap
make mode/eighty/m80s:default:flash # Soldered
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).

View File

@ -14,14 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* This file was auto-generated by:
* `qmk chibios-confmigrate -i keyboards/mode/eighty/halconf.h -r platforms/chibios/common/configs/halconf.h`
*/
#pragma once
#define HAL_USE_I2C TRUE
#include_next <halconf.h>

View File

@ -13,7 +13,7 @@
#pragma once
#include "eighty.h"
#include "m80v1.h"
#define LAYOUT_eighty_m80h( \
K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K415, K114, K115, K116, \

View File

@ -13,7 +13,7 @@
#pragma once
#include "eighty.h"
#include "m80v1.h"
#define LAYOUT_eighty_m80s( \
K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K415, K114, K115, K116, \

View File

@ -11,4 +11,4 @@
* GNU General Public License for more details.
*/
#include "eighty.h"
#include "m80v1.h"

View File

@ -2,8 +2,8 @@
#include "quantum.h"
#if defined(KEYBOARD_mode_eighty_m80h)
#if defined(KEYBOARD_mode_m80v1_m80h)
#include "m80h.h"
#elif defined(KEYBOARD_mode_eighty_m80s)
#elif defined(KEYBOARD_mode_m80v1_m80s)
#include "m80s.h"
#endif // Mode80 solderable "S" and hotswap "H" revisions

View File

@ -0,0 +1,38 @@
# Mode Eighty V1 PCB QMK firmware
![MODE80](https://i.imgur.com/26uzM3yl.jpg)\
[Image Gallery](https://imgur.com/t/mechanicalkeyboards/8Uf6c2m?nc=1)
The Mode80 is a tenkeyless high-end keyboard sold by [Mode Designs](https://shop.modedesigns.com/).
* Keyboard Maintainer: [Gondolindrim](https://github.com/gondolindrim)
* Hardware Supported: proprietary PCB using STM32F072 controller
* 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.
## How to flash
### Enter bootloader
The DFU state in the bootloader can be accessed in 3 ways:
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
* **Physical reset button**: press the button on the front of the PCB, next to caps lock, for at least five seconds
* **Keycode in layout**: Press the key mapped to `RESET` if it is available (ESC key at layer 1 in the default layout)
## Compile firmware
After accessing the DFU state in your PCB, build the default layout using:
make mode/m80v1/m80h:default # Hotswap
make mode/m80v1/m80s:default # Soldered
Then download the resulting binary `*bin` file using `dfu-util` or QMK Toolbox.
## Compile and flash
After accessing the DFU state in your PCB, you can compile-and-flash automatically usind `dfu-util` through
make mode/m80v1/m80h:default:flash # Hotswap
make mode/m80v1/m80s:default:flash # Soldered
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).

View File

@ -0,0 +1,25 @@
/* Copyright 2020 QMK
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#define CH_CFG_ST_FREQUENCY 10000
#define CH_CFG_OPTIMIZE_SPEED FALSE
#define CH_CFG_USE_CONDVARS_TIMEOUT FALSE
#include_next <chconf.h>

View File

@ -0,0 +1,45 @@
/*
Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
/* USB Device descriptor parameter */
#define VENDOR_ID 0x00DE
#define DEVICE_VER 0x0002
#define MANUFACTURER Mode
/* key matrix size */
#define MATRIX_ROWS 6
#define MATRIX_COLS 17
#define MATRIX_ROW_PINS { B12, B13, B14, B3, B4, B9 }
#define MATRIX_COL_PINS { A1, A2, A3, A4, A5, A6, A7, B0, B1, B10, A8, A10, B15, A15, B5, B8, C13 }
#define DIODE_DIRECTION COL2ROW
/* define if matrix has ghost */
//#define MATRIX_HAS_GHOST
/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define LED_CAPS_LOCK_PIN A0

View File

@ -0,0 +1,18 @@
/* Copyright 2020 QMK
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include_next <halconf.h>

View File

@ -0,0 +1,18 @@
/*
Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "m80v2.h"

Some files were not shown because too many files have changed in this diff Show More