mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
feat: adding support for HLB CantorMX F411
This commit is contained in:
14
keyboards/hlb/cantor/config.h
Normal file
14
keyboards/hlb/cantor/config.h
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2022 Diego Palacios (@diepala)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#define SERIAL_USART_FULL_DUPLEX // Enable full duplex operation mode.
|
||||
#define SERIAL_USART_TX_PIN B6 // USART TX pin
|
||||
#define SERIAL_USART_RX_PIN B7 // USART RX pin
|
||||
|
||||
#define BOOTMAGIC_ROW 3
|
||||
#define BOOTMAGIC_COLUMN 0
|
||||
|
||||
#define BOOTMAGIC_ROW_RIGHT 7
|
||||
#define BOOTMAGIC_COLUMN_RIGHT 2
|
||||
8
keyboards/hlb/cantor/halconf.h
Normal file
8
keyboards/hlb/cantor/halconf.h
Normal file
@@ -0,0 +1,8 @@
|
||||
// Copyright 2022 Diego Palacios (@diepala)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#define HAL_USE_SERIAL TRUE
|
||||
|
||||
#include_next <halconf.h>
|
||||
92
keyboards/hlb/cantor/keyboard.json
Normal file
92
keyboards/hlb/cantor/keyboard.json
Normal file
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"manufacturer": "HLB",
|
||||
"keyboard_name": "CantorMX F411",
|
||||
"maintainer": "H3lli0n",
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"nkro": true
|
||||
},
|
||||
"processor": "STM32F411",
|
||||
"bootloader": "stm32-dfu",
|
||||
"url": "https://github.com/H3lli0n/CantorMx-3DP-case",
|
||||
"usb": {
|
||||
"device_version": "1.0.0",
|
||||
"pid": "0x0000",
|
||||
"vid": "0xFEED"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"direct": [
|
||||
["B1", "B10", "A8", "B15", "B14", "B13"],
|
||||
["B9", "B8", "B5", "B4", "B3", "A15"],
|
||||
["A3", "A4", "A5", "A6", "A7", "B0"],
|
||||
["A2", "A1", "A0", null, null, null]
|
||||
]
|
||||
},
|
||||
"split": {
|
||||
"enabled": true,
|
||||
"matrix_pins": {
|
||||
"right": {
|
||||
"direct": [
|
||||
["B13", "B14", "B15", "A8", "B10", "B1"],
|
||||
["A15", "B3", "B4", "B5", "B8", "B9"],
|
||||
["B0", "A7", "A6", "A5", "A4", "A3"],
|
||||
["A0", "A1", "A2", null, null, null]
|
||||
]
|
||||
}
|
||||
},
|
||||
"serial": {
|
||||
"driver": "usart"
|
||||
}
|
||||
},
|
||||
"community_layouts": ["split_3x6_3"],
|
||||
"layouts": {
|
||||
"LAYOUT_split_3x6_3": {
|
||||
"layout": [
|
||||
{"matrix": [0, 0], "x": 0, "y": 0.25},
|
||||
{"matrix": [0, 1], "x": 1, "y": 0.25},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0.125},
|
||||
{"matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"matrix": [0, 4], "x": 4, "y": 0.125},
|
||||
{"matrix": [0, 5], "x": 5, "y": 0.25},
|
||||
{"matrix": [4, 0], "x": 8, "y": 0.25},
|
||||
{"matrix": [4, 1], "x": 9, "y": 0.125},
|
||||
{"matrix": [4, 2], "x": 10, "y": 0},
|
||||
{"matrix": [4, 3], "x": 11, "y": 0.125},
|
||||
{"matrix": [4, 4], "x": 12, "y": 0.25},
|
||||
{"matrix": [4, 5], "x": 13, "y": 0.25},
|
||||
{"matrix": [1, 0], "x": 0, "y": 1.25},
|
||||
{"matrix": [1, 1], "x": 1, "y": 1.25},
|
||||
{"matrix": [1, 2], "x": 2, "y": 1.125},
|
||||
{"matrix": [1, 3], "x": 3, "y": 1},
|
||||
{"matrix": [1, 4], "x": 4, "y": 1.125},
|
||||
{"matrix": [1, 5], "x": 5, "y": 1.25},
|
||||
{"matrix": [5, 0], "x": 8, "y": 1.25},
|
||||
{"matrix": [5, 1], "x": 9, "y": 1.125},
|
||||
{"matrix": [5, 2], "x": 10, "y": 1},
|
||||
{"matrix": [5, 3], "x": 11, "y": 1.125},
|
||||
{"matrix": [5, 4], "x": 12, "y": 1.25},
|
||||
{"matrix": [5, 5], "x": 13, "y": 1.25},
|
||||
{"matrix": [2, 0], "x": 0, "y": 2.25},
|
||||
{"matrix": [2, 1], "x": 1, "y": 2.25},
|
||||
{"matrix": [2, 2], "x": 2, "y": 2.125},
|
||||
{"matrix": [2, 3], "x": 3, "y": 2},
|
||||
{"matrix": [2, 4], "x": 4, "y": 2.125},
|
||||
{"matrix": [2, 5], "x": 5, "y": 2.25},
|
||||
{"matrix": [6, 0], "x": 8, "y": 2.25},
|
||||
{"matrix": [6, 1], "x": 9, "y": 2.125},
|
||||
{"matrix": [6, 2], "x": 10, "y": 2},
|
||||
{"matrix": [6, 3], "x": 11, "y": 2.125},
|
||||
{"matrix": [6, 4], "x": 12, "y": 2.25},
|
||||
{"matrix": [6, 5], "x": 13, "y": 2.25},
|
||||
{"matrix": [3, 0], "x": 3.5, "y": 3.25},
|
||||
{"matrix": [3, 1], "x": 4.5, "y": 3.5},
|
||||
{"matrix": [3, 2], "x": 5.5, "y": 3.75},
|
||||
{"matrix": [7, 0], "x": 7.5, "y": 3.75},
|
||||
{"matrix": [7, 1], "x": 8.5, "y": 3.5},
|
||||
{"matrix": [7, 2], "x": 9.5, "y": 3.25}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
28
keyboards/hlb/cantor/keymaps/default/keymap.c
Normal file
28
keyboards/hlb/cantor/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,28 @@
|
||||
// Copyright 2022 Diego Palacios (@diepala)
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
* ┌───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┐
|
||||
* │Tab│ Q │ W │ E │ R │ T │ │ Y │ U │ I │ O │ P │Bsp│
|
||||
* ├───┼───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┼───┤
|
||||
* │Ctl│ A │ S │ D │ F │ G │ │ H │ J │ K │ L │ ; │ ' │
|
||||
* ├───┼───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┼───┤
|
||||
* │Sft│ Z │ X │ C │ V │ B │ │ N │ M │ , │ . │ / │Sft│
|
||||
* └───┴───┴───┴───┴───┴───┘ └───┴───┴───┴───┴───┴───┘
|
||||
* ┌───┐ ┌───┐
|
||||
* │GUI├───┐ ┌───┤Alt│
|
||||
* └───┤ ├───┐ ┌───┤ ├───┘
|
||||
* └───┤Bsp│ │Ent├───┘
|
||||
* └───┘ └───┘
|
||||
*/
|
||||
[0] = LAYOUT_split_3x6_3(
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
||||
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_LGUI, KC_SPC, KC_BSPC, KC_ENT, KC_SPC, KC_RALT
|
||||
)
|
||||
};
|
||||
|
||||
9
keyboards/hlb/cantor/mcuconf.h
Normal file
9
keyboards/hlb/cantor/mcuconf.h
Normal file
@@ -0,0 +1,9 @@
|
||||
// Copyright 2022 Diego Palacios (@diepala)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include_next <mcuconf.h>
|
||||
|
||||
#undef STM32_SERIAL_USE_USART1
|
||||
#define STM32_SERIAL_USE_USART1 TRUE
|
||||
28
keyboards/hlb/cantor/readme.md
Normal file
28
keyboards/hlb/cantor/readme.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# HLB CantorMX F411
|
||||
|
||||
Project based on original Cantor keyboard (42 key diodeless split keyboard), designed with simplicity in mind. It is inspired on the popular [corne](https://github.com/foostan/crkbd), [ferris](https://github.com/pierrechevalier83/ferris) and [sweep](https://github.com/davidphilipbarr/Sweep) keyboards, aiming to provide a more ergonomic (stronger column stagger) corne-like layout with a simple, easy to assemble and cheap design.
|
||||
We upgraded blackpill version to STM32F411 8Mhz therefore original firmware maintained by [Diego Palacios](https://github.com/diepala) must be adapted to this hardware.
|
||||
A case design has beed made to get a full 3DP Cantor project (see below)
|
||||
|
||||
* Keyboard Maintainer: [HLB H3lli0n](https://github.com/H3lli0n)
|
||||
* Hardware Supported: Blackpill STM32F411 8Mhz only
|
||||
* Hardware Availability: https://github.com/H3lli0n/CantorMx-3DP-case
|
||||
|
||||
This firmware is made for EE_HANDS split, to build and flash your firmwares (left and right) please follow the examples below with hand in DFU mode:
|
||||
|
||||
Make+flash example for this split (after setting up your build environment):
|
||||
make hlb/cantor:vial::dfu-util-split-left
|
||||
make hlb/cantor:vial::dfu-util-split-right
|
||||
|
||||
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).
|
||||
|
||||
## Bootloader
|
||||
|
||||
Enter the bootloader in 3 ways:
|
||||
|
||||
* **Bootmagic reset**: Hold down the thumb key on the left and plug in the keyboard. For the right side, hold the thumb key on the right and plug the keyboard.
|
||||
* **Physical reset button**:
|
||||
* Press and hold the BOOT0 button.
|
||||
* Press and release the NRST button.
|
||||
* Release the BOOT0 button.
|
||||
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
|
||||
Reference in New Issue
Block a user