mirror of
https://github.com/qmk/qmk_firmware
synced 2024-12-22 08:26:21 +00:00
Merge remote-tracking branch 'upstream/master' into develop
This commit is contained in:
commit
ea1a9c37ed
File diff suppressed because it is too large
Load Diff
@ -22,7 +22,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
* |Ctrl|Win |Alt | Space |END|Alt |Ctrl|Left |Down|Rig|
|
||||
* `----------------------------------------------------------------'
|
||||
*/
|
||||
[0] = LAYOUT(
|
||||
[0] = LAYOUT_all(
|
||||
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_HOME,KC_DEL,
|
||||
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_PGUP,
|
||||
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_PGDN,
|
||||
@ -42,7 +42,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
* | | | | | | | | |
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
[1] = LAYOUT(
|
||||
[1] = LAYOUT_all(
|
||||
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,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_UP, KC_TRNS,KC_TRNS,KC_TRNS,KC_CALC,KC_TRNS,KC_INS, KC_TRNS,KC_PSCR,KC_SCRL,KC_PAUS,KC_TRNS,KC_TRNS,
|
||||
|
@ -0,0 +1,57 @@
|
||||
// Copyright 2022 peepeetee (@peepeetee)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Base */
|
||||
/* Keymap 0: Default Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│Hm │End│Del│
|
||||
* ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │Bkspc │PgU│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ │PgD│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │Enter │Ins│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │Shift │Up │Fn │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴──┬───┼───┼───┤
|
||||
* │Ctrl│GUI │Alt │Space │Alt │Ctrl │Lft│Dwn│Rig│
|
||||
* └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
|
||||
*/
|
||||
[0] = LAYOUT_75_ansi_rwkl(
|
||||
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_HOME, KC_END, KC_DEL,
|
||||
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_PGUP,
|
||||
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_PGDN,
|
||||
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, KC_INS,
|
||||
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, MO(1),
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
|
||||
/* Keymap 1: Fn Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │ │ │Up │ │ │ │Cal│ │Ins│ │PSc│SLk│Pau│ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │BL Brt│Lft│Dwn│Rgt│ │ │ │ │ │ │Hm │PUp│ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │BL Step │ │App│ │ │ │Vl-│Vl+│Mut│End│PDn│ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴──┬───┼───┼───┤
|
||||
* │Slp │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
|
||||
*/
|
||||
[1] = LAYOUT_75_ansi_rwkl(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, KC_UP, _______, _______, _______, KC_CALC, _______, KC_INS, _______, KC_PSCR, KC_SCRL, KC_PAUS, _______, _______,
|
||||
BL_BRTG, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, _______, _______,
|
||||
BL_STEP, _______, KC_APP, _______, _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, _______, _______, _______,
|
||||
KC_SLEP, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
|
||||
};
|
@ -0,0 +1,57 @@
|
||||
// Copyright 2022 peepeetee (@peepeetee)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Base */
|
||||
/* Keymap 0: Default Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│Hm │End│Del│
|
||||
* ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │Bkspc │PgU│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ │PgD│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐Ent ├───┤
|
||||
* │Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ # │ │Ins│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┼───┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │Shift │Up │Fn │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴──┬───┼───┼───┤
|
||||
* │Ctrl│GUI │Alt │Space │Alt │Ctrl │Lft│Dwn│Rig│
|
||||
* └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
|
||||
*/
|
||||
[0] = LAYOUT_75_iso_rwkl(
|
||||
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_HOME, KC_END, KC_DEL,
|
||||
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_PGUP,
|
||||
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_PGDN,
|
||||
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, KC_INS,
|
||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, MO(1),
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
|
||||
/* Keymap 1: Fn Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │ │ │Up │ │ │ │Cal│ │Ins│ │PSc│SLk│Pau│ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ ├───┤
|
||||
* │BL Brt│Lft│Dwn│Rgt│ │ │ │ │ │ │Hm │PUp│ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┼───┤
|
||||
* │BL Step │ │App│ │ │ │Vl-│Vl+│Mut│End│PDn│ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴──┬───┼───┼───┤
|
||||
* │Slp │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
|
||||
*/
|
||||
[1] = LAYOUT_75_iso_rwkl(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, KC_UP, _______, _______, _______, KC_CALC, _______, KC_INS, _______, KC_PSCR, KC_SCRL, KC_PAUS, _______,
|
||||
BL_BRTG, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, _______, _______, _______,
|
||||
BL_STEP, _______, _______, KC_APP, _______, _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, _______, _______, _______,
|
||||
KC_SLEP, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
|
||||
};
|
24
keyboards/amjkeyboard/amj84/matrix_diagram.md
Normal file
24
keyboards/amjkeyboard/amj84/matrix_diagram.md
Normal file
@ -0,0 +1,24 @@
|
||||
# Matrix Diagram for AMJKeyboard AMJ84
|
||||
|
||||
```
|
||||
┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
│00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0A │0B │0C │0D │58 │0E │
|
||||
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
│10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1A │1B │1C │1D │1E │
|
||||
├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤ ┌─────┐
|
||||
│20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2A │2B │2C │2D │2E │ │ │
|
||||
├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤ ┌──┴┐3D │ ISO Enter
|
||||
│30 │31 │32 │33 │34 │35 │36 │37 │38 │39 │3A │3B │3D │3E │ │3C │ │
|
||||
├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤ └───┴────┘
|
||||
│40 │41 │42 │43 │44 │45 │46 │47 │48 │49 │4A │4B │4C │4D │4E │
|
||||
├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬┴──┬───┼───┼───┤
|
||||
│50 │51 │52 │55 │59 │5A │5B │5C │5D │5E │
|
||||
└────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┴───┘
|
||||
┌────────┐ └─────┬─────┘
|
||||
│40 │ 2.25u LShift │
|
||||
└────────┘ ┌─────┴─────┐
|
||||
┌─────┬───┬─────┬───────────────────────┬─────┬─────┐
|
||||
│50 │51 │52 │55 │5A │5B │ RWKL
|
||||
└─────┴───┴─────┴───────────────────────┴─────┴─────┘
|
||||
1.5u 1u 1.5u 6u
|
||||
```
|
@ -6,7 +6,7 @@
|
||||
"scroll_lock": "C5",
|
||||
"on_state": 0
|
||||
},
|
||||
"community_layouts": ["tkl_ansi"],
|
||||
"community_layouts": ["tkl_ansi", "tkl_jis"],
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
|
@ -6,7 +6,7 @@
|
||||
"scroll_lock": "C5",
|
||||
"on_state": 0
|
||||
},
|
||||
"community_layouts": ["tkl_ansi"],
|
||||
"community_layouts": ["tkl_ansi", "tkl_jis"],
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
|
@ -53,6 +53,7 @@
|
||||
},
|
||||
"vid": "0x6369"
|
||||
},
|
||||
"community_layouts": ["tkl_jis", "tkl_iso_tsangan", "tkl_ansi_tsangan"],
|
||||
"layouts": {
|
||||
"LAYOUT_all": {
|
||||
"layout": [
|
||||
|
@ -9,7 +9,7 @@
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"community_layouts": ["fullsize_ansi", "fullsize_iso"],
|
||||
"community_layouts": ["fullsize_ansi", "fullsize_iso", "fullsize_jis"],
|
||||
"layouts": {
|
||||
"LAYOUT_all": {
|
||||
"layout": [
|
||||
|
90
keyboards/custommk/evo70_r2/config.h
Normal file
90
keyboards/custommk/evo70_r2/config.h
Normal file
@ -0,0 +1,90 @@
|
||||
/* Copyright 2023 David Hoelscher (@customMK)
|
||||
*
|
||||
* 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
|
||||
|
||||
// No VBUS sense needed
|
||||
#define BOARD_OTG_NOVBUSSENS 1
|
||||
|
||||
#define STM32_LSECLK 32768
|
||||
|
||||
#define MATRIX_ROWS 5
|
||||
#define MATRIX_COLS 16
|
||||
#define MATRIX_ROW_PINS { A8, A1, A2, B1, A7 }
|
||||
|
||||
// FRAM configuration
|
||||
#define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN A0
|
||||
#define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 4 // 48MHz / 4 = 12MHz; max supported by MB85R64 is 20MHz
|
||||
|
||||
// External flash configuration
|
||||
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN B12
|
||||
#define EXTERNAL_FLASH_SPI_CLOCK_DIVISOR 1 // 48MHz; max supported by W25Q128JV is 133MHz
|
||||
#define EXTERNAL_FLASH_SIZE (16 * 1024 * 1024) //128Mbit or 16MByte
|
||||
#define EXTERNAL_FLASH_SPI_TIMEOUT 200000 //datasheet max is 200seconds for flash chip erase
|
||||
|
||||
// SPI Configuration
|
||||
#define SPI_DRIVER SPID1
|
||||
#define SPI_SCK_PIN B3
|
||||
#define SPI_SCK_PAL_MODE 5
|
||||
#define SPI_MOSI_PIN B5
|
||||
#define SPI_MOSI_PAL_MODE 5
|
||||
#define SPI_MISO_PIN B4
|
||||
#define SPI_MISO_PAL_MODE 5
|
||||
|
||||
|
||||
// SPI LCD Configuration
|
||||
#define LCD_RST_PIN B2
|
||||
#define LCD_CS_PIN A9
|
||||
#define LCD_DC_PIN B0
|
||||
#ifndef LCD_ACTIVITY_TIMEOUT
|
||||
#define LCD_ACTIVITY_TIMEOUT 30000
|
||||
#endif
|
||||
|
||||
// I2C OLED Configuration
|
||||
#define I2C1_SCL_PIN B6
|
||||
#define I2C1_SDA_PIN B9
|
||||
|
||||
#define I2C1_CLOCK_SPEED 400000
|
||||
#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2
|
||||
|
||||
#define OLED_DISABLE_TIMEOUT
|
||||
|
||||
#define COL_SHIFT_IN_PIN B14
|
||||
#define COL_SHIFT_CLK_PIN B15
|
||||
|
||||
#define QUANTUM_PAINTER_SUPPORTS_256_PALETTE TRUE
|
||||
#define QUANTUM_PAINTER_SUPPORTS_NATIVE_COLORS TRUE
|
||||
|
||||
#define OLED_UPDATE_INTERVAL 66
|
||||
|
||||
#define BACKLIGHT_PWM_DRIVER PWMD3
|
||||
#define BACKLIGHT_PWM_CHANNEL 1
|
||||
#define BACKLIGHT_PAL_MODE 2
|
||||
|
||||
#define WS2812_PWM_DRIVER PWMD1
|
||||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_DMA_CHANNEL 6
|
||||
|
||||
#define TAP_CODE_DELAY 10
|
||||
|
||||
#define AUDIO_PIN B8
|
||||
#define AUDIO_PWM_DRIVER PWMD4
|
||||
#define AUDIO_PWM_CHANNEL 3
|
||||
#define AUDIO_PWM_PAL_MODE 2
|
||||
#define AUDIO_STATE_TIMER GPTD5
|
||||
#define AUDIO_INIT_DELAY
|
36
keyboards/custommk/evo70_r2/halconf.h
Normal file
36
keyboards/custommk/evo70_r2/halconf.h
Normal file
@ -0,0 +1,36 @@
|
||||
/* Copyright 2023 David Hoelscher (@customMK)
|
||||
*
|
||||
* 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 HAL_USE_I2C TRUE
|
||||
|
||||
#define HAL_USE_PWM TRUE
|
||||
|
||||
#define HAL_USE_RTC TRUE
|
||||
|
||||
#define HAL_USE_SPI TRUE
|
||||
|
||||
#define HAL_USE_GPT TRUE
|
||||
|
||||
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
|
||||
|
||||
#define SERIAL_BUFFERS_SIZE 256
|
||||
|
||||
// This enables interrupt-driven mode
|
||||
#define SPI_USE_WAIT TRUE
|
||||
|
||||
#include_next <halconf.h>
|
152
keyboards/custommk/evo70_r2/info.json
Normal file
152
keyboards/custommk/evo70_r2/info.json
Normal file
@ -0,0 +1,152 @@
|
||||
{
|
||||
"keyboard_name": "EVO70 R2",
|
||||
"url": "https://shop.custommk.com/collections/evo70/products/evo70",
|
||||
"maintainer": "customMK",
|
||||
"manufacturer": "customMK",
|
||||
"tags": ["70%", "encoder", "underglow", "backlight"],
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"command": false,
|
||||
"console": false,
|
||||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"nkro": true,
|
||||
"encoder": true,
|
||||
"quantum_painter": true,
|
||||
"oled": true,
|
||||
"rgblight": true,
|
||||
"backlight": true,
|
||||
"audio": true
|
||||
},
|
||||
"usb": {
|
||||
"vid": "0xF35B",
|
||||
"pid": "0xFAB6",
|
||||
"device_version": "1.0.0"
|
||||
},
|
||||
"diode_direction": "ROW2COL",
|
||||
"processor": "STM32F411",
|
||||
"bootloader": "stm32-dfu",
|
||||
"rgblight": {
|
||||
"led_count": 48,
|
||||
"hue_steps": 4,
|
||||
"saturation_steps": 8,
|
||||
"brightness_steps": 4,
|
||||
"max_brightness": 128,
|
||||
"layers": {
|
||||
"enabled": true
|
||||
},
|
||||
"animations": {
|
||||
"alternating": true,
|
||||
"breathing": true,
|
||||
"christmas": true,
|
||||
"knight": true,
|
||||
"rainbo_mood": true,
|
||||
"rainbow_swirl": true,
|
||||
"rgb_test": true,
|
||||
"snake": true,
|
||||
"static_gradient": true,
|
||||
"twinkle": true
|
||||
}
|
||||
},
|
||||
"ws2812": {
|
||||
"driver": "pwm",
|
||||
"pin": "A10"
|
||||
},
|
||||
"backlight": {
|
||||
"driver": "pwm",
|
||||
"breathing": true,
|
||||
"breathing_period": 6,
|
||||
"levels": 17,
|
||||
"pin": "A6"
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{"label":"Encoder", "matrix": [1, 0], "x":0.5, "y":0},
|
||||
{"label":"Esc", "matrix": [0, 0], "x":2.5, "y":0},
|
||||
{"label":"1", "matrix": [0, 2], "x":3.5, "y":0},
|
||||
{"label":"2", "matrix": [0, 3], "x":4.5, "y":0},
|
||||
{"label":"3", "matrix": [0, 4], "x":5.5, "y":0},
|
||||
{"label":"4", "matrix": [0, 5], "x":6.5, "y":0},
|
||||
{"label":"5", "matrix": [0, 6], "x":7.5, "y":0},
|
||||
{"label":"6", "matrix": [0, 7], "x":8.5, "y":0},
|
||||
{"label":"7", "matrix": [0, 8], "x":9.5, "y":0},
|
||||
{"label":"8", "matrix": [0, 9], "x":10.5, "y":0},
|
||||
{"label":"9", "matrix": [0, 10], "x":11.5, "y":0},
|
||||
{"label":"0", "matrix": [0, 11], "x":12.5, "y":0},
|
||||
{"label":"-", "matrix": [0, 12], "x":13.5, "y":0},
|
||||
{"label":"=", "matrix": [0, 13], "x":14.5, "y":0},
|
||||
{"label":"Backspace", "matrix": [0, 14], "x":15.5, "y":0, "w":2},
|
||||
{"label":"Delete", "matrix": [0, 15], "x":17.5, "y":0},
|
||||
|
||||
{"label":"Tab", "matrix": [1, 1], "x":2.5, "y":1, "w":1.5},
|
||||
{"label":"Q", "matrix": [1, 2], "x":4, "y":1},
|
||||
{"label":"W", "matrix": [1, 3], "x":5, "y":1},
|
||||
{"label":"E", "matrix": [1, 4], "x":6, "y":1},
|
||||
{"label":"R", "matrix": [1, 5], "x":7, "y":1},
|
||||
{"label":"T", "matrix": [1, 6], "x":8, "y":1},
|
||||
{"label":"Y", "matrix": [1, 7], "x":9, "y":1},
|
||||
{"label":"U", "matrix": [1, 8], "x":10, "y":1},
|
||||
{"label":"I", "matrix": [1, 9], "x":11, "y":1},
|
||||
{"label":"O", "matrix": [1, 10], "x":12, "y":1},
|
||||
{"label":"P", "matrix": [1, 11], "x":13, "y":1},
|
||||
{"label":"[", "matrix": [1, 12], "x":14, "y":1},
|
||||
{"label":"]", "matrix": [1, 13], "x":15, "y":1},
|
||||
{"label":"\\", "matrix": [1, 14], "x":16, "y":1, "w":1.5},
|
||||
{"label":"PgUp", "matrix": [1, 15], "x":17.5, "y":1},
|
||||
|
||||
{"label":"F1", "matrix": [2, 2], "x":0, "y":2},
|
||||
{"label":"F2", "matrix": [2, 0], "x":1, "y":2},
|
||||
{"label":"Caps Lock", "matrix": [2, 1], "x":2.5, "y":2, "w":1.75},
|
||||
{"label":"A", "matrix": [2, 3], "x":4.25, "y":2},
|
||||
{"label":"S", "matrix": [2, 4], "x":5.25, "y":2},
|
||||
{"label":"D", "matrix": [2, 5], "x":6.25, "y":2},
|
||||
{"label":"F", "matrix": [2, 6], "x":7.25, "y":2},
|
||||
{"label":"G", "matrix": [2, 7], "x":8.25, "y":2},
|
||||
{"label":"H", "matrix": [2, 8], "x":9.25, "y":2},
|
||||
{"label":"J", "matrix": [2, 9], "x":10.25, "y":2},
|
||||
{"label":"K", "matrix": [2, 10], "x":11.25, "y":2},
|
||||
{"label":"L", "matrix": [2, 11], "x":12.25, "y":2},
|
||||
{"label":";", "matrix": [2, 12], "x":13.25, "y":2},
|
||||
{"label":"'", "matrix": [2, 13], "x":14.25, "y":2},
|
||||
{"label":"Enter", "matrix": [2, 14], "x":15.25, "y":2, "w":2.25},
|
||||
{"label":"PgDn", "matrix": [2, 15], "x":17.5, "y":2},
|
||||
|
||||
{"label":"F3", "matrix": [3, 1], "x":0, "y":3},
|
||||
{"label":"F4", "matrix": [3, 0], "x":1, "y":3},
|
||||
{"label":"Shift", "matrix": [3, 2], "x":2.5, "y":3, "w":1.25},
|
||||
{"label":"\u2298", "matrix": [0, 1], "x":3.75, "y":3, "w":1},
|
||||
{"label":"Z", "matrix": [3, 3], "x":4.75, "y":3},
|
||||
{"label":"X", "matrix": [3, 4], "x":5.75, "y":3},
|
||||
{"label":"C", "matrix": [3, 5], "x":6.75, "y":3},
|
||||
{"label":"V", "matrix": [3, 6], "x":7.75, "y":3},
|
||||
{"label":"B", "matrix": [3, 7], "x":8.75, "y":3},
|
||||
{"label":"N", "matrix": [3, 8], "x":9.75, "y":3},
|
||||
{"label":"M", "matrix": [3, 9], "x":10.75, "y":3},
|
||||
{"label":",", "matrix": [3, 10], "x":11.75, "y":3},
|
||||
{"label":".", "matrix": [3, 11], "x":12.75, "y":3},
|
||||
{"label":"/", "matrix": [3, 12], "x":13.75, "y":3},
|
||||
{"label":"Shift", "matrix": [3, 13], "x":14.75, "y":3, "w":1.75},
|
||||
{"label":"Up", "matrix": [3, 14], "x":16.5, "y":3},
|
||||
{"label":"End", "matrix": [3, 15], "x":17.5, "y":3},
|
||||
|
||||
{"label":"F5", "matrix": [4, 3], "x":0, "y":4},
|
||||
{"label":"F6", "matrix": [4, 0], "x":1, "y":4},
|
||||
{"label":"Ctrl", "matrix": [4, 1], "x":2.5, "y":4, "w":1.25},
|
||||
{"label":"GUI", "matrix": [4, 2], "x":3.75, "y":4, "w":1.25},
|
||||
{"label":"Alt", "matrix": [4, 4], "x":5, "y":4, "w":1.25},
|
||||
{"label":"Space", "matrix": [4, 7], "x":6.25, "y":4, "w":6.25},
|
||||
{"label":"Alt", "matrix": [4, 10], "x":12.5, "y":4, "w":1.25},
|
||||
{"label":"Ctrl", "matrix": [4, 11], "x":13.75, "y":4, "w":1.25},
|
||||
{"label":"Left", "matrix": [4, 13], "x":15.5, "y":4},
|
||||
{"label":"Down", "matrix": [4, 14], "x":16.5, "y":4},
|
||||
{"label":"Right", "matrix": [4, 15], "x":17.5, "y":4}
|
||||
]
|
||||
}
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{ "pin_a": "B7", "pin_b": "A4", "resolution": 2}
|
||||
]
|
||||
}
|
||||
}
|
33
keyboards/custommk/evo70_r2/keymaps/default/keymap.c
Normal file
33
keyboards/custommk/evo70_r2/keymaps/default/keymap.c
Normal file
@ -0,0 +1,33 @@
|
||||
/* Copyright 2023 David Hoelscher (@customMK)
|
||||
*
|
||||
* 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 QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[0] = LAYOUT(
|
||||
KC_ESC, KC_ESC, 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_DEL,
|
||||
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_PGUP,
|
||||
KC_F1, KC_F2, 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, KC_PGDN,
|
||||
KC_F3, KC_F4, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
|
||||
KC_F5, KC_F6, KC_LCTL, KC_LWIN, KC_LALT, KC_SPACE, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU),
|
||||
};
|
||||
#endif
|
13
keyboards/custommk/evo70_r2/keymaps/via/config.h
Normal file
13
keyboards/custommk/evo70_r2/keymaps/via/config.h
Normal file
@ -0,0 +1,13 @@
|
||||
// Copyright 2023 David Hoelscher (@customMK)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
// With 8k FRAM, max out dynamic keymap layers and macros
|
||||
// 5x16 matrix (160 bytes) and one encoder (4 bytes) consume 164 bytes per layer
|
||||
// 32 layers consumes 5248 bytes
|
||||
#define DYNAMIC_KEYMAP_LAYER_COUNT 32
|
||||
|
||||
// Most of the remaining space can be used for macros
|
||||
// QMK Macro keycode range allows up to 128 macros
|
||||
#define DYNAMIC_KEYMAP_MACRO_COUNT 128
|
33
keyboards/custommk/evo70_r2/keymaps/via/keymap.c
Normal file
33
keyboards/custommk/evo70_r2/keymaps/via/keymap.c
Normal file
@ -0,0 +1,33 @@
|
||||
/* Copyright 2023 David Hoelscher (@customMK)
|
||||
*
|
||||
* 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 QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[0] = LAYOUT(
|
||||
KC_ESC, KC_ESC, 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_DEL,
|
||||
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_PGUP,
|
||||
KC_F1, KC_F2, 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, KC_PGDN,
|
||||
KC_F3, KC_F4, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
|
||||
KC_F5, KC_F6, KC_LCTL, KC_LWIN, KC_LALT, KC_SPACE, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }
|
||||
};
|
||||
#endif
|
2
keyboards/custommk/evo70_r2/keymaps/via/rules.mk
Normal file
2
keyboards/custommk/evo70_r2/keymaps/via/rules.mk
Normal file
@ -0,0 +1,2 @@
|
||||
VIA_ENABLE = yes
|
||||
ENCODER_MAP_ENABLE = yes
|
117
keyboards/custommk/evo70_r2/matrix.c
Normal file
117
keyboards/custommk/evo70_r2/matrix.c
Normal file
@ -0,0 +1,117 @@
|
||||
// Copyright 2023 David Hoelscher (@customMK)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#include "quantum.h"
|
||||
|
||||
// Pin definitions
|
||||
static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
|
||||
|
||||
void matrix_wait_for_pin(pin_t pin, uint8_t target_state) {
|
||||
rtcnt_t start = chSysGetRealtimeCounterX();
|
||||
rtcnt_t end = start + 5000;
|
||||
while (chSysIsCounterWithinX(chSysGetRealtimeCounterX(), start, end)) {
|
||||
if (readPin(pin) == target_state) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void matrix_wait_for_port(stm32_gpio_t *port, uint32_t target_bitmask) {
|
||||
rtcnt_t start = chSysGetRealtimeCounterX();
|
||||
rtcnt_t end = start + 5000;
|
||||
while (chSysIsCounterWithinX(chSysGetRealtimeCounterX(), start, end)) {
|
||||
if ((palReadPort(port) & target_bitmask) == target_bitmask) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void shift_pulse_clock(void) {
|
||||
writePinHigh(COL_SHIFT_CLK_PIN);
|
||||
matrix_wait_for_pin(COL_SHIFT_CLK_PIN, 1);
|
||||
writePinLow(COL_SHIFT_CLK_PIN);
|
||||
}
|
||||
|
||||
void matrix_init_custom(void) {
|
||||
//set all row pins as input with pullups
|
||||
for (int i = 0; i < MATRIX_ROWS; ++i) {
|
||||
writePinHigh(row_pins[i]);
|
||||
setPinInputHigh(row_pins[i]);
|
||||
}
|
||||
|
||||
//set all column pins high in ROW2COL matrix
|
||||
setPinOutput(COL_SHIFT_IN_PIN);
|
||||
setPinOutput(COL_SHIFT_CLK_PIN);
|
||||
writePinHigh(COL_SHIFT_IN_PIN);
|
||||
matrix_wait_for_pin(COL_SHIFT_IN_PIN, 1);
|
||||
|
||||
for (int i = 0; i < MATRIX_COLS; ++i) {
|
||||
shift_pulse_clock();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
bool matrix_scan_custom(matrix_row_t current_matrix[]) {
|
||||
static matrix_row_t temp_matrix[MATRIX_ROWS] = {0};
|
||||
|
||||
writePinLow(COL_SHIFT_IN_PIN);
|
||||
matrix_wait_for_pin(COL_SHIFT_IN_PIN, 0);
|
||||
|
||||
// Setup the output column pin
|
||||
shift_pulse_clock();
|
||||
|
||||
writePinHigh(COL_SHIFT_IN_PIN);
|
||||
for (int current_col = 0; current_col < MATRIX_COLS; ++current_col) {
|
||||
|
||||
// Read the column ports
|
||||
uint32_t gpio_a = palReadPort(GPIOA);
|
||||
uint32_t gpio_b = palReadPort(GPIOB);
|
||||
|
||||
// row 0, pin A8
|
||||
int current_row = 0;
|
||||
if ((gpio_a & (1 << 8)) >> 8) {
|
||||
temp_matrix[current_row] &= ~(1ul << current_col);
|
||||
} else {
|
||||
temp_matrix[current_row] |= (1ul << current_col);
|
||||
}
|
||||
// row 1, pin A1
|
||||
current_row = 1;
|
||||
if ((gpio_a & (1 << 1)) >> 1) {
|
||||
temp_matrix[current_row] &= ~(1ul << current_col);
|
||||
} else {
|
||||
temp_matrix[current_row] |= (1ul << current_col);
|
||||
}
|
||||
// row 2, pin A2
|
||||
current_row = 2;
|
||||
if ((gpio_a & (1 << 2)) >> 2) {
|
||||
temp_matrix[current_row] &= ~(1ul << current_col);
|
||||
} else {
|
||||
temp_matrix[current_row] |= (1ul << current_col);
|
||||
}
|
||||
// row 3, pin B3
|
||||
current_row = 3;
|
||||
if ((gpio_b & (1 << 1)) >> 1) {
|
||||
temp_matrix[current_row] &= ~(1ul << current_col);
|
||||
} else {
|
||||
temp_matrix[current_row] |= (1ul << current_col);
|
||||
}
|
||||
// row 4, pin A7
|
||||
current_row = 4;
|
||||
if ((gpio_a & (1 << 7)) >> 7) {
|
||||
temp_matrix[current_row] &= ~(1ul << current_col);
|
||||
} else {
|
||||
temp_matrix[current_row] |= (1ul << current_col);
|
||||
}
|
||||
|
||||
// Setup the output column pin
|
||||
shift_pulse_clock();
|
||||
|
||||
}
|
||||
|
||||
// Check if matrix has changed, return the last-read data
|
||||
bool changed = memcmp(current_matrix, temp_matrix, sizeof(temp_matrix)) != 0;
|
||||
if (changed) {
|
||||
memcpy(current_matrix, temp_matrix, sizeof(temp_matrix));
|
||||
}
|
||||
shift_pulse_clock();
|
||||
return changed;
|
||||
}
|
58
keyboards/custommk/evo70_r2/mcuconf.h
Normal file
58
keyboards/custommk/evo70_r2/mcuconf.h
Normal file
@ -0,0 +1,58 @@
|
||||
/* Copyright 2023 David Hoelscher (@customMK)
|
||||
*
|
||||
* 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 <mcuconf.h>
|
||||
|
||||
#undef STM32_LSE_ENABLED
|
||||
#define STM32_LSE_ENABLED TRUE
|
||||
|
||||
#undef STM32_RTCSEL
|
||||
#define STM32_RTCSEL STM32_RTCSEL_LSE
|
||||
|
||||
// Used for underglow
|
||||
#undef STM32_PWM_USE_TIM1 //timer 1 channel 3
|
||||
#define STM32_PWM_USE_TIM1 TRUE
|
||||
|
||||
// Used for backlight
|
||||
//#undef STM32_PWM_USE_TIM2 //timer 2 channel ?
|
||||
//#define STM32_PWM_USE_TIM2 TRUE
|
||||
|
||||
// Used for backlight
|
||||
#undef STM32_PWM_USE_TIM3 //timer 3 channel 1
|
||||
#define STM32_PWM_USE_TIM3 TRUE
|
||||
|
||||
// Used for backlight
|
||||
//#undef STM32_GPT_USE_TIM3 //timer 3 channel 1
|
||||
//#define STM32_GPT_USE_TIM3 TRUE
|
||||
|
||||
// Used for backlight
|
||||
#undef STM32_PWM_USE_TIM4 //timer 4 channel ?
|
||||
#define STM32_PWM_USE_TIM4 TRUE
|
||||
|
||||
// Used for backlight
|
||||
#undef STM32_GPT_USE_TIM5 //timer 5 channel ?
|
||||
#define STM32_GPT_USE_TIM5 TRUE
|
||||
|
||||
// Used for FRAM and flash in example code
|
||||
#undef STM32_SPI_USE_SPI1
|
||||
#define STM32_SPI_USE_SPI1 TRUE
|
||||
|
||||
// Used for OLED
|
||||
#undef STM32_I2C_USE_I2C1
|
||||
#define STM32_I2C_USE_I2C1 TRUE
|
||||
|
21
keyboards/custommk/evo70_r2/readme.md
Normal file
21
keyboards/custommk/evo70_r2/readme.md
Normal file
@ -0,0 +1,21 @@
|
||||
# EVO70 R2
|
||||
|
||||
EVO70 R2 is a 70% keyboard (65% w/left side function cluster) designed and produced by customMK.
|
||||
|
||||
![EVO70 R2](https://i.imgur.com/B1QMuIxh.jpeg)
|
||||
|
||||
* Keyboard Maintainer: [customMK](https://github.com/customMK)
|
||||
* Hardware Supported: EVO70 R2
|
||||
* Hardware Availability: [customMK](https://shop.custommk.com/collections/evo70/products/evo70)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make custommk/evo70_r2:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make custommk/evo70_r2:default:flash
|
||||
|
||||
To enter the bootloader, run the flashing command above, and then either plug in the USB connection while holding the top-left key, or alternatively, plug in the USB connection and then press the reset button on the PCB located under the space bar.
|
||||
|
||||
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).
|
11
keyboards/custommk/evo70_r2/rules.mk
Normal file
11
keyboards/custommk/evo70_r2/rules.mk
Normal file
@ -0,0 +1,11 @@
|
||||
AUDIO_DRIVER = pwm_hardware
|
||||
|
||||
# project specific files
|
||||
SRC += matrix.c
|
||||
|
||||
EEPROM_DRIVER = spi
|
||||
|
||||
QUANTUM_PAINTER_DRIVERS = st7735_spi
|
||||
|
||||
CUSTOM_MATRIX = lite
|
||||
CIE1931_CURVE = yes
|
76
keyboards/handwired/scottokeebs/scottoalp/info.json
Normal file
76
keyboards/handwired/scottokeebs/scottoalp/info.json
Normal file
@ -0,0 +1,76 @@
|
||||
{
|
||||
"manufacturer": "ScottoKeebs",
|
||||
"keyboard_name": "ScottoAlp",
|
||||
"maintainer": "joe-scotto",
|
||||
"development_board": "promicro",
|
||||
"diode_direction": "COL2ROW",
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"command": false,
|
||||
"console": false,
|
||||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"nkro": true
|
||||
},
|
||||
"matrix_pins": {
|
||||
// 4, 5, 6, 7, 8, 9, A3, A2, A1, A0
|
||||
"cols": ["D4", "C6", "D7", "E6", "B4", "B5", "F4", "F5", "F6", "F7"],
|
||||
|
||||
// 15, 14, 16, 10
|
||||
"rows": ["B1", "B3", "B2", "B6"]
|
||||
},
|
||||
"url": "https://scottokeebs.com",
|
||||
"usb": {
|
||||
"device_version": "1.0.0",
|
||||
"pid": "0x0007",
|
||||
"vid": "0x534B"
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT_ortho_3x10_5": {
|
||||
"layout": [
|
||||
// Row 1
|
||||
{ "matrix": [0, 0], "x": 0, "y": 0 },
|
||||
{ "matrix": [0, 1], "x": 1, "y": 0 },
|
||||
{ "matrix": [0, 2], "x": 2, "y": 0 },
|
||||
{ "matrix": [0, 3], "x": 3, "y": 0 },
|
||||
{ "matrix": [0, 4], "x": 4, "y": 0 },
|
||||
{ "matrix": [0, 5], "x": 5, "y": 0 },
|
||||
{ "matrix": [0, 6], "x": 6, "y": 0 },
|
||||
{ "matrix": [0, 7], "x": 7, "y": 0 },
|
||||
{ "matrix": [0, 8], "x": 8, "y": 0 },
|
||||
{ "matrix": [0, 9], "x": 9, "y": 0 },
|
||||
|
||||
// Row 2
|
||||
{ "matrix": [1, 0], "x": 0, "y": 1 },
|
||||
{ "matrix": [1, 1], "x": 1, "y": 1 },
|
||||
{ "matrix": [1, 2], "x": 2, "y": 1 },
|
||||
{ "matrix": [1, 3], "x": 3, "y": 1 },
|
||||
{ "matrix": [1, 4], "x": 4, "y": 1 },
|
||||
{ "matrix": [1, 5], "x": 5, "y": 1 },
|
||||
{ "matrix": [1, 6], "x": 6, "y": 1 },
|
||||
{ "matrix": [1, 7], "x": 7, "y": 1 },
|
||||
{ "matrix": [1, 8], "x": 8, "y": 1 },
|
||||
{ "matrix": [1, 9], "x": 9, "y": 1 },
|
||||
|
||||
// Row 3
|
||||
{ "matrix": [2, 0], "x": 0, "y": 2 },
|
||||
{ "matrix": [2, 1], "x": 1, "y": 2 },
|
||||
{ "matrix": [2, 2], "x": 2, "y": 2 },
|
||||
{ "matrix": [2, 3], "x": 3, "y": 2 },
|
||||
{ "matrix": [2, 4], "x": 4, "y": 2 },
|
||||
{ "matrix": [2, 5], "x": 5, "y": 2 },
|
||||
{ "matrix": [2, 6], "x": 6, "y": 2 },
|
||||
{ "matrix": [2, 7], "x": 7, "y": 2 },
|
||||
{ "matrix": [2, 8], "x": 8, "y": 2 },
|
||||
{ "matrix": [2, 9], "x": 9, "y": 2 },
|
||||
|
||||
// Row 4
|
||||
{ "matrix": [3, 1], "x": 1, "y": 3 },
|
||||
{ "matrix": [3, 2], "x": 2, "y": 3 },
|
||||
{ "matrix": [3, 4], "x": 4, "y": 3 },
|
||||
{ "matrix": [3, 6], "x": 6, "y": 3 },
|
||||
{ "matrix": [3, 7], "x": 7, "y": 3 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
/*
|
||||
Copyright 2022 Joe Scotto
|
||||
|
||||
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 options
|
||||
#define TAPPING_TERM 135
|
||||
#define PERMISSIVE_HOLD
|
||||
#define TAPPING_TERM_PER_KEY
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
Copyright 2022 Joe Scotto
|
||||
|
||||
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 QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT_ortho_3x10_5(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_BSPC,
|
||||
LSFT_T(KC_Z), KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, RSFT_T(KC_SLSH),
|
||||
KC_LGUI, KC_LALT, LGUI_T(KC_SPC), LT(1, KC_TAB), LT(2, KC_ENT)
|
||||
),
|
||||
[1] = LAYOUT_ortho_3x10_5(
|
||||
KC_UNDS, KC_MINS, KC_PLUS, KC_EQL, KC_COLN, KC_GRV, KC_MRWD, KC_MPLY, KC_MFFD, KC_DEL,
|
||||
KC_LCBR, KC_LPRN, KC_RPRN, KC_RCBR, KC_PIPE, KC_ESC, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT,
|
||||
LSFT_T(KC_LBRC), KC_QUOT, KC_DQUO, KC_RBRC, KC_SCLN, KC_TILDE, KC_VOLD, KC_MUTE, KC_VOLU, RSFT_T(KC_BSLS),
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
[2] = LAYOUT_ortho_3x10_5(
|
||||
KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_CAPS, KC_BSPC,
|
||||
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||
KC_LSFT, KC_NO, KC_NO, KC_NO, MO(3), KC_NO, KC_NO, KC_COMM, KC_DOT, RSFT_T(KC_SLSH),
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
[3] = LAYOUT_ortho_3x10_5(
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
|
||||
KC_F11, KC_NO, KC_NO, QK_BOOT, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_F12,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
)
|
||||
};
|
@ -0,0 +1,23 @@
|
||||
/*
|
||||
Copyright 2022 Joe Scotto
|
||||
|
||||
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 options
|
||||
#define TAPPING_TERM 135
|
||||
#define PERMISSIVE_HOLD
|
||||
#define TAPPING_TERM_PER_KEY
|
@ -0,0 +1,174 @@
|
||||
/*
|
||||
Copyright 2022 Joe Scotto
|
||||
|
||||
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 QMK_KEYBOARD_H
|
||||
|
||||
// Tap dance declarations
|
||||
enum {
|
||||
TD_LCTL_ESC_SPOTLIGHT_EMOJI,
|
||||
TD_LALT_ESC_WINDOWS_EMOJI
|
||||
};
|
||||
|
||||
uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case TD(TD_LCTL_ESC_SPOTLIGHT_EMOJI) :
|
||||
case TD(TD_LALT_ESC_WINDOWS_EMOJI) :
|
||||
case LGUI_T(KC_SPC) :
|
||||
case LT(1, KC_TAB) :
|
||||
case LT(2, KC_ENT) :
|
||||
return 200;
|
||||
default:
|
||||
return TAPPING_TERM;
|
||||
}
|
||||
};
|
||||
|
||||
// Begin quad TD
|
||||
typedef enum {
|
||||
TD_NONE,
|
||||
TD_UNKNOWN,
|
||||
TD_SINGLE_HOLD,
|
||||
TD_SINGLE_TAP,
|
||||
TD_DOUBLE_TAP,
|
||||
TD_TRIPLE_TAP
|
||||
} td_state_t;
|
||||
|
||||
typedef struct {
|
||||
bool is_press_action;
|
||||
td_state_t state;
|
||||
} td_tap_t;
|
||||
|
||||
// Create an instance of 'td_tap_t' for the 'x' tap dance.
|
||||
static td_tap_t xtap_state = {
|
||||
.is_press_action = true,
|
||||
.state = TD_NONE
|
||||
};
|
||||
|
||||
td_state_t cur_dance(tap_dance_state_t *state) {
|
||||
if (state->count == 1) {
|
||||
if (state->interrupted || !state->pressed) {
|
||||
return TD_SINGLE_TAP;
|
||||
} else {
|
||||
return TD_SINGLE_HOLD;
|
||||
}
|
||||
} else if (state->count == 2) {
|
||||
return TD_DOUBLE_TAP;
|
||||
} else if (state->count == 3) {
|
||||
return TD_TRIPLE_TAP;
|
||||
}
|
||||
|
||||
return TD_UNKNOWN;
|
||||
}
|
||||
|
||||
void td_lctl_esc_spotlight_emoji_finished(tap_dance_state_t *state, void *user_data) {
|
||||
xtap_state.state = cur_dance(state);
|
||||
switch (xtap_state.state) {
|
||||
case TD_SINGLE_TAP: register_code(KC_ESC); break;
|
||||
case TD_SINGLE_HOLD: register_code(KC_LCTL); break;
|
||||
case TD_DOUBLE_TAP: tap_code16(G(KC_SPC)); break;
|
||||
case TD_TRIPLE_TAP: tap_code16(C(G(KC_SPC))); break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
||||
void td_lctl_esc_spotlight_emoji_reset(tap_dance_state_t *state, void *user_data) {
|
||||
switch (xtap_state.state) {
|
||||
case TD_SINGLE_TAP: unregister_code(KC_ESC); break;
|
||||
case TD_SINGLE_HOLD: unregister_code(KC_LCTL); break;
|
||||
default: break;
|
||||
}
|
||||
xtap_state.state = TD_NONE;
|
||||
}
|
||||
|
||||
void td_lalt_esc_windowr_emoji_finished(tap_dance_state_t *state, void *user_data) {
|
||||
xtap_state.state = cur_dance(state);
|
||||
switch (xtap_state.state) {
|
||||
case TD_SINGLE_TAP: register_code(KC_ESC); break;
|
||||
case TD_SINGLE_HOLD: register_code(KC_LALT); break;
|
||||
case TD_DOUBLE_TAP: tap_code(KC_LGUI); break;
|
||||
case TD_TRIPLE_TAP: tap_code16(G(KC_DOT)); break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
||||
void td_lalt_esc_windowr_emoji_reset(tap_dance_state_t *state, void *user_data) {
|
||||
switch (xtap_state.state) {
|
||||
case TD_SINGLE_TAP: unregister_code(KC_ESC); break;
|
||||
case TD_SINGLE_HOLD: unregister_code(KC_LALT); break;
|
||||
default: break;
|
||||
}
|
||||
xtap_state.state = TD_NONE;
|
||||
}
|
||||
|
||||
// Tap Dance definitions
|
||||
tap_dance_action_t tap_dance_actions[] = {
|
||||
[TD_LCTL_ESC_SPOTLIGHT_EMOJI] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, td_lctl_esc_spotlight_emoji_finished, td_lctl_esc_spotlight_emoji_reset),
|
||||
[TD_LALT_ESC_WINDOWS_EMOJI] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, td_lalt_esc_windowr_emoji_finished, td_lalt_esc_windowr_emoji_reset),
|
||||
};
|
||||
// For the x tap dance. Put it here so it can be used in any keymap
|
||||
void x_finished(tap_dance_state_t *state, void *user_data);
|
||||
void x_reset(tap_dance_state_t *state, void *user_data);
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT_ortho_3x10_5(
|
||||
KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_BSPC,
|
||||
KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O,
|
||||
LSFT_T(KC_Z), KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMMA, KC_DOT, RSFT_T(KC_SLSH),
|
||||
TD(TD_LCTL_ESC_SPOTLIGHT_EMOJI), KC_LALT, LGUI_T(KC_SPC), LT(1, KC_TAB), LT(2, KC_ENT)
|
||||
),
|
||||
[1] = LAYOUT_ortho_3x10_5(
|
||||
KC_UNDS, KC_MINS, KC_PLUS, KC_EQL, KC_COLN, KC_GRV, KC_MRWD, KC_MPLY, KC_MFFD, KC_DEL,
|
||||
KC_LCBR, KC_LPRN, KC_RPRN, KC_RCBR, KC_PIPE, KC_ESC, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT,
|
||||
LSFT_T(KC_LBRC), KC_QUOT, KC_DQUO, KC_RBRC, KC_SCLN, KC_TILDE, KC_VOLD, KC_MUTE, KC_VOLU, RSFT_T(KC_BSLS),
|
||||
TD(TD_LCTL_ESC_SPOTLIGHT_EMOJI), KC_LALT, LGUI_T(KC_SPC), KC_TRNS, KC_TRNS
|
||||
),
|
||||
[2] = LAYOUT_ortho_3x10_5(
|
||||
KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_CAPS, KC_BSPC,
|
||||
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||
KC_LSFT, KC_NO, KC_NO, KC_NO, MO(3), KC_NO, KC_NO, KC_COMM, KC_DOT, RSFT_T(KC_SLSH),
|
||||
TD(TD_LCTL_ESC_SPOTLIGHT_EMOJI), KC_LALT, LGUI_T(KC_SPC), KC_TRNS, KC_TRNS
|
||||
),
|
||||
[3] = LAYOUT_ortho_3x10_5(
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(4),
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
|
||||
KC_F11, KC_NO, KC_NO, QK_BOOT, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_F12,
|
||||
TD(TD_LCTL_ESC_SPOTLIGHT_EMOJI), KC_LALT, LGUI_T(KC_SPC), KC_TRNS, KC_TRNS
|
||||
),
|
||||
[4] = LAYOUT_ortho_3x10_5(
|
||||
KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_BSPC,
|
||||
KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O,
|
||||
LSFT_T(KC_Z), KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMMA, KC_DOT, RSFT_T(KC_SLSH),
|
||||
TD(TD_LALT_ESC_WINDOWS_EMOJI), KC_LCTL, KC_SPC, LT(5, KC_TAB), LT(6, KC_ENT)
|
||||
),
|
||||
[5] = LAYOUT_ortho_3x10_5(
|
||||
KC_UNDS, KC_MINS, KC_PLUS, KC_EQL, KC_COLN, KC_GRV, KC_MRWD, KC_MPLY, KC_MFFD, KC_DEL,
|
||||
KC_LCBR, KC_LPRN, KC_RPRN, KC_RCBR, KC_PIPE, KC_ESC, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT,
|
||||
LSFT_T(KC_LBRC), KC_QUOT, KC_DQUO, KC_RBRC, KC_SCLN, KC_TILDE, KC_VOLD, KC_MUTE, KC_VOLU, RSFT_T(KC_BSLS),
|
||||
TD(TD_LALT_ESC_WINDOWS_EMOJI), KC_LCTL, KC_SPC, LT(5, KC_TAB), LT(6, KC_ENT)
|
||||
),
|
||||
[6] = LAYOUT_ortho_3x10_5(
|
||||
KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_CAPS, KC_BSPC,
|
||||
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||
KC_LSFT, KC_NO, KC_NO, KC_NO, MO(7), KC_NO, KC_NO, KC_COMM, KC_DOT, RSFT_T(KC_SLSH),
|
||||
TD(TD_LALT_ESC_WINDOWS_EMOJI), KC_LCTL, KC_SPC, LT(5, KC_TAB), LT(6, KC_ENT)
|
||||
),
|
||||
[7] = LAYOUT_ortho_3x10_5(
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(0),
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
|
||||
KC_F11, KC_NO, KC_NO, QK_BOOT, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_F12,
|
||||
TD(TD_LALT_ESC_WINDOWS_EMOJI), KC_LCTL, KC_SPC, LT(5, KC_TAB), LT(6, KC_ENT)
|
||||
)
|
||||
};
|
@ -0,0 +1 @@
|
||||
TAP_DANCE_ENABLE = yes
|
27
keyboards/handwired/scottokeebs/scottoalp/readme.md
Normal file
27
keyboards/handwired/scottokeebs/scottoalp/readme.md
Normal file
@ -0,0 +1,27 @@
|
||||
# ScottoAlp
|
||||
|
||||
![ScottoAlp](https://i.imgur.com/XKpYcMgh.jpeg)
|
||||
|
||||
A 35-key ortholinear keyboard with a 3u spacebar and is compatible with both MX or Alps. Case files available [here](https://github.com/joe-scotto/scottokeebs).
|
||||
|
||||
* Keyboard Maintainer: [Joe Scotto](https://github.com/joe-scotto)
|
||||
* Hardware Supported: ATmega32U4
|
||||
* Hardware Availability: [Amazon](https://amazon.com)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make handwired/jscotto/scottoalp:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make handwired/jscotto/scottoalp:default:flash
|
||||
|
||||
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 key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
|
||||
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
|
||||
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
|
1
keyboards/handwired/scottokeebs/scottoalp/rules.mk
Normal file
1
keyboards/handwired/scottokeebs/scottoalp/rules.mk
Normal file
@ -0,0 +1 @@
|
||||
# This file intentionally left blank
|
@ -0,0 +1,72 @@
|
||||
// Copyright 2021-2023 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// https://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
/**
|
||||
* @file custom_shift_keys.c
|
||||
* @brief Custom Shift Keys implementation
|
||||
*
|
||||
* For full documentation, see
|
||||
* <https://getreuer.info/posts/keyboards/custom-shift-keys>
|
||||
*/
|
||||
|
||||
#include "custom_shift_keys.h"
|
||||
|
||||
bool process_custom_shift_keys(uint16_t keycode, keyrecord_t *record) {
|
||||
static uint16_t registered_keycode = KC_NO;
|
||||
|
||||
// If a custom shift key is registered, then this event is either releasing
|
||||
// it or manipulating another key at the same time. Either way, we release
|
||||
// the currently registered key.
|
||||
if (registered_keycode != KC_NO) {
|
||||
unregister_code16(registered_keycode);
|
||||
registered_keycode = KC_NO;
|
||||
}
|
||||
|
||||
if (record->event.pressed) { // Press event.
|
||||
const uint8_t mods = get_mods();
|
||||
#ifndef NO_ACTION_ONESHOT
|
||||
if ((mods | get_weak_mods() | get_oneshot_mods()) & MOD_MASK_SHIFT) {
|
||||
#else
|
||||
if ((mods | get_weak_mods()) & MOD_MASK_SHIFT) { // Shift is held.
|
||||
#endif // NO_ACTION_ONESHOT
|
||||
// Continue default handling if this is a tap-hold key being held.
|
||||
if ((IS_QK_MOD_TAP(keycode) || IS_QK_LAYER_TAP(keycode)) && record->tap.count == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Search for a custom shift key whose keycode is `keycode`.
|
||||
for (int i = 0; i < NUM_CUSTOM_SHIFT_KEYS; ++i) {
|
||||
if (keycode == custom_shift_keys[i].keycode) {
|
||||
registered_keycode = custom_shift_keys[i].shifted_keycode;
|
||||
if (IS_QK_MODS(registered_keycode) && // Should keycode be shifted?
|
||||
(QK_MODS_GET_MODS(registered_keycode) & MOD_LSFT) != 0) {
|
||||
register_code16(registered_keycode); // If so, press it directly.
|
||||
} else {
|
||||
// Otherwise cancel shift mods, press the key, and restore mods.
|
||||
del_weak_mods(MOD_MASK_SHIFT);
|
||||
#ifndef NO_ACTION_ONESHOT
|
||||
del_oneshot_mods(MOD_MASK_SHIFT);
|
||||
#endif // NO_ACTION_ONESHOT
|
||||
unregister_mods(MOD_MASK_SHIFT);
|
||||
register_code16(registered_keycode);
|
||||
set_mods(mods);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true; // Continue with default handling.
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
// Copyright 2021-2022 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// https://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
/**
|
||||
* @file custom_shift_keys.h
|
||||
* @brief Custom shift keys: customize what keycode is produced when shifted.
|
||||
*
|
||||
* Overview
|
||||
* --------
|
||||
*
|
||||
* This library implements custom shift keys, keys where you can customize
|
||||
* what keycode is produced when shifted.
|
||||
*
|
||||
* Step 1: In your keymap.c, define a table of custom shift keys like
|
||||
*
|
||||
* #include "features/custom_shift_keys.h"
|
||||
*
|
||||
* const custom_shift_key_t custom_shift_keys[] = {
|
||||
* {KC_DOT , KC_QUES}, // Shift . is ?
|
||||
* {KC_COMM, KC_EXLM}, // Shift , is !
|
||||
* {KC_MINS, KC_EQL }, // Shift - is =
|
||||
* {KC_COLN, KC_SCLN}, // Shift : is ;
|
||||
* };
|
||||
*
|
||||
* Each row defines one key. The first field is the keycode as it appears in
|
||||
* your layout and determines what is typed normally. The second entry is what
|
||||
* you want the key to type when shifted.
|
||||
*
|
||||
* Step 2: Handle custom shift keys from your `process_record_user` function as
|
||||
*
|
||||
* bool process_record_user(uint16_t keycode, keyrecord_t* record) {
|
||||
* if (!process_custom_shift_keys(keycode, record)) { return false; }
|
||||
* // Your macros ...
|
||||
*
|
||||
* return true;
|
||||
* }
|
||||
*
|
||||
* Step 3: add `features/custom_shift_keys.c` to your rules.mk as
|
||||
*
|
||||
* SRC += features/custom_shift_keys.c
|
||||
*
|
||||
*
|
||||
* For full documentation, see
|
||||
* <https://getreuer.info/posts/keyboards/custom-shift-keys>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Custom shift key entry. The `keycode` field is the keycode as it appears in
|
||||
* your layout and determines what is typed normally. The `shifted_keycode` is
|
||||
* what you want the key to type when shifted.
|
||||
*/
|
||||
typedef struct {
|
||||
uint16_t keycode;
|
||||
uint16_t shifted_keycode;
|
||||
} custom_shift_key_t;
|
||||
|
||||
/** Table of custom shift keys. */
|
||||
extern const custom_shift_key_t custom_shift_keys[];
|
||||
/** Number of entries in the `custom_shift_keys` table. */
|
||||
extern uint8_t NUM_CUSTOM_SHIFT_KEYS;
|
||||
|
||||
/**
|
||||
* Handler function for custom shift keys.
|
||||
*
|
||||
* In keymap.c, call this function from your `process_record_user` function as
|
||||
*
|
||||
* #include "features/custom_shift_keys.h"
|
||||
*
|
||||
* bool process_record_user(uint16_t keycode, keyrecord_t* record) {
|
||||
* if (!process_custom_shift_keys(keycode, record)) { return false; }
|
||||
* // Your macros ...
|
||||
*
|
||||
* return true;
|
||||
* }
|
||||
*/
|
||||
bool process_custom_shift_keys(uint16_t keycode, keyrecord_t *record);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user