1
0
Fork 0
forked from forks/qmk_firmware

Merge remote-tracking branch 'origin/master' into develop

This commit is contained in:
zvecr 2023-12-04 13:58:34 +00:00
commit daa5afcf1d
21 changed files with 789 additions and 150 deletions

View file

@ -1,89 +1,89 @@
{
"development_board": {
"promicro": {
"processor": "atmega32u4",
"bootloader": "caterina",
"pin_compatible": "promicro"
},
"elite_c": {
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"pin_compatible": "promicro"
},
"elite_pi": {
"processor": "RP2040",
"bootloader": "rp2040",
"board": "QMK_PM2040"
},
"proton_c": {
"processor": "STM32F303",
"bootloader": "stm32-dfu",
"board": "QMK_PROTON_C"
},
"kb2040": {
"processor": "RP2040",
"bootloader": "rp2040",
"board": "QMK_PM2040"
},
"promicro_rp2040": {
"processor": "RP2040",
"bootloader": "rp2040",
"board": "QMK_PM2040"
},
"blok": {
"processor": "RP2040",
"bootloader": "rp2040",
"board": "QMK_BLOK"
},
"michi": {
"processor": "RP2040",
"bootloader": "rp2040",
"board": "QMK_PM2040"
},
"bit_c_pro": {
"processor": "RP2040",
"board": "QMK_PM2040",
"bootloader": "rp2040",
"board": "QMK_PM2040"
},
"bluepill": {
"processor": "STM32F103",
"bootloader": "stm32duino",
"board": "STM32_F103_STM32DUINO"
"processor": "RP2040"
},
"blackpill_f401": {
"processor": "STM32F401",
"board": "BLACKPILL_STM32_F401",
"bootloader": "stm32-dfu",
"board": "BLACKPILL_STM32_F401"
"processor": "STM32F401"
},
"blackpill_f411": {
"processor": "STM32F411",
"board": "BLACKPILL_STM32_F411",
"bootloader": "stm32-dfu",
"board": "BLACKPILL_STM32_F411"
"processor": "STM32F411"
},
"stemcell": {
"processor": "STM32F411",
"bootloader": "tinyuf2",
"board": "STEMCELL"
"blok": {
"board": "QMK_BLOK",
"bootloader": "rp2040",
"processor": "RP2040"
},
"bluepill": {
"board": "STM32_F103_STM32DUINO",
"bootloader": "stm32duino",
"processor": "STM32F103"
},
"bonsai_c4": {
"processor": "STM32F411",
"board": "BONSAI_C4",
"bootloader": "stm32-dfu",
"board": "BONSAI_C4"
"processor": "STM32F411"
},
"elite_c": {
"bootloader": "atmel-dfu",
"pin_compatible": "promicro",
"processor": "atmega32u4"
},
"elite_pi": {
"board": "QMK_PM2040",
"bootloader": "rp2040",
"processor": "RP2040"
},
"helios": {
"processor": "RP2040",
"board": "QMK_PM2040",
"bootloader": "rp2040",
"board": "QMK_PM2040"
},
"liatris": {
"processor": "RP2040",
"bootloader": "rp2040",
"board": "QMK_PM2040"
"processor": "RP2040"
},
"imera": {
"processor": "RP2040",
"bootloader": "rp2040",
"board": "QMK_PM2040"
},
"kb2040": {
"board": "QMK_PM2040",
"bootloader": "rp2040",
"processor": "RP2040"
},
"liatris": {
"board": "QMK_PM2040",
"bootloader": "rp2040",
"processor": "RP2040"
},
"michi": {
"board": "QMK_PM2040",
"bootloader": "rp2040",
"processor": "RP2040"
},
"promicro": {
"bootloader": "caterina",
"pin_compatible": "promicro",
"processor": "atmega32u4"
},
"promicro_rp2040": {
"board": "QMK_PM2040",
"bootloader": "rp2040",
"processor": "RP2040"
},
"proton_c": {
"board": "QMK_PROTON_C",
"bootloader": "stm32-dfu",
"processor": "STM32F303"
},
"stemcell": {
"board": "STEMCELL",
"bootloader": "tinyuf2",
"processor": "STM32F411"
}
}
}

View file

@ -3,10 +3,25 @@
"$id": "qmk.definitions.v1",
"title": "Common definitions used across QMK's jsonschemas.",
"type": "object",
"bcd_version": {
"type": "string",
"pattern": "^[0-9]{1,2}\\.[0-9]\\.[0-9]$"
},
"bit": {
"type": "integer",
"minimum": 0,
"maximum": 1
},
"boolean_array": {
"type": "object",
"additionalProperties": {"type": "boolean"}
},
"build_target": {
"oneOf": [
{"$ref": "#/keyboard_keymap_tuple"},
{"$ref": "#/json_file_path"}
]
},
"filename": {
"type": "string",
"minLength": 1,
@ -20,18 +35,56 @@
"type": "string",
"pattern": "^0x[0-9A-F]{4}$"
},
"bcd_version": {
"json_file_path": {
"type": "string",
"pattern": "^[0-9]{1,2}\\.[0-9]\\.[0-9]$"
"pattern": "^[0-9a-z_/\\-]+\\.json$"
},
"text_identifier": {
"type": "string",
"minLength": 1,
"maxLength": 250
"key_unit": {
"type": "number"
},
"snake_case": {
"keyboard": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]*$"
"pattern": "^[0-9a-z][0-9a-z_/]*$"
},
"keyboard_keymap_tuple": {
"type": "array",
"prefixItems": [
{"$ref": "#/keyboard"},
{"$ref": "#/filename"}
],
"unevaluatedItems": false
},
"keycode": {
"type": "string",
"minLength": 2,
"maxLength": 50,
"pattern": "^[A-Z][A-Zs_0-9]*$"
},
"keycode_decl": {
"type": "object",
"required": [
"key"
],
"properties": {
"key": {"$ref": "#/keycode"},
"label": {"$ref": "#/text_identifier"},
"aliases": {
"type": "array",
"minItems": 1,
"items": {"$ref": "#/keycode_short"}
}
}
},
"keycode_decl_array": {
"type": "array",
"minItems": 1,
"items": {"$ref": "#/keycode_decl"}
},
"keycode_short": {
"type": "string",
"minLength": 2,
"maxLength": 7,
"pattern": "^[A-Z][A-Zs_0-9]*$"
},
"layout_macro": {
"oneOf": [
@ -68,49 +121,6 @@
}
]
},
"key_unit": {
"type": "number"
},
"keyboard": {
"type": "string",
"pattern": "^[0-9a-z][0-9a-z_/]*$"
},
"keycode": {
"type": "string",
"minLength": 2,
"maxLength": 50,
"pattern": "^[A-Z][A-Zs_0-9]*$"
},
"keycode_short": {
"type": "string",
"minLength": 2,
"maxLength": 7,
"pattern": "^[A-Z][A-Zs_0-9]*$"
},
"keycode_decl": {
"type": "object",
"required": [
"key"
],
"properties": {
"key": {"$ref": "#/keycode"},
"label": {"$ref": "#/text_identifier"},
"aliases": {
"type": "array",
"minItems": 1,
"items": {"$ref": "#/keycode_short"}
}
}
},
"keycode_decl_array": {
"type": "array",
"minItems": 1
"items": {"$ref": "#/keycode_decl"}
},
"mcu_pin_array": {
"type": "array",
"items": {"$ref": "#/mcu_pin"}
},
"mcu_pin": {
"oneOf": [
{
@ -129,14 +139,14 @@
"type": "string",
"pattern": "^GP\\d{1,2}$"
},
{
"type": "integer"
},
{
"type": "null"
}
{"type": "integer"},
{"type": "null"}
]
},
"mcu_pin_array": {
"type": "array",
"items": {"$ref": "#/mcu_pin"}
},
"signed_decimal": {
"type": "number"
},
@ -148,17 +158,22 @@
"minimum": -127,
"maximum": 127
},
"snake_case": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]*$"
},
"string_array": {
"type": "array",
"items": {
"type": "string"
}
"items": {"type": "string"}
},
"string_object": {
"type": "object",
"additionalProperties": {
"type": "string"
}
"additionalProperties": {"type": "string"}
},
"text_identifier": {
"type": "string",
"minLength": 1,
"maxLength": 250
},
"unsigned_decimal": {
"type": "number",
@ -172,28 +187,5 @@
"type": "integer",
"minimum": 0,
"maximum": 255
},
"bit": {
"type": "integer",
"minimum": 0,
"maximum": 1
},
"keyboard_keymap_tuple": {
"type": "array",
"prefixItems": [
{ "$ref": "#/keyboard" },
{ "$ref": "#/filename" }
],
"unevaluatedItems": false
},
"json_file_path": {
"type": "string",
"pattern": "^[0-9a-z_/\\-]+\\.json$"
},
"build_target": {
"oneOf": [
{ "$ref": "#/keyboard_keymap_tuple" },
{ "$ref": "#/json_file_path" }
]
}
}

View file

@ -0,0 +1,8 @@
// Copyright 2023 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include_next <board.h>
#undef STM32_HSECLK
#define STM32_HSECLK 16000000U

View file

@ -0,0 +1,16 @@
// Copyright 2023 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define I2C1_SCL_PIN B8
#define I2C1_SDA_PIN B9
#define EXTERNAL_EEPROM_I2C_BASE_ADDRESS 0b10101000
#define EXTERNAL_EEPROM_WP_PIN B7
#define EEPROM_I2C_24LC256
#define IS31FL3733_I2C_ADDRESS_1 IS31FL3733_I2C_ADDRESS_GND_GND
#define IS31FL3733_I2C_ADDRESS_2 IS31FL3733_I2C_ADDRESS_VCC_VCC
#define IS31FL3733_PWM_FREQUENCY IS31FL3733_PWM_FREQUENCY_26K7_HZ
#define RGB_MATRIX_CAPS_LOCK_INDEX 30

View file

@ -0,0 +1,79 @@
// Copyright 2023 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#ifdef RGB_MATRIX_ENABLE
# include "rgb_matrix.h"
const is31fl3733_led_t PROGMEM g_is31fl3733_leds[RGB_MATRIX_LED_COUNT] = {
{ 0, B_1, A_1, C_1 },
{ 0, B_2, A_2, C_2 },
{ 0, B_3, A_3, C_3 },
{ 0, B_4, A_4, C_4 },
{ 0, B_5, A_5, C_5 },
{ 0, B_6, A_6, C_6 },
{ 0, B_7, A_7, C_7 },
{ 0, B_8, A_8, C_8 },
{ 0, B_9, A_9, C_9 },
{ 0, B_10, A_10, C_10 },
{ 0, B_11, A_11, C_11 },
{ 0, B_12, A_12, C_12 },
{ 0, B_13, A_13, C_13 },
{ 0, B_14, A_14, C_14 },
{ 0, B_15, A_15, C_15 },
{ 0, E_1, D_1, F_1 },
{ 0, E_2, D_2, F_2 },
{ 0, E_3, D_3, F_3 },
{ 0, E_4, D_4, F_4 },
{ 0, E_5, D_5, F_5 },
{ 0, E_6, D_6, F_6 },
{ 0, E_7, D_7, F_7 },
{ 0, E_8, D_8, F_8 },
{ 0, E_9, D_9, F_9 },
{ 0, E_10, D_10, F_10 },
{ 0, E_11, D_11, F_11 },
{ 0, E_12, D_12, F_12 },
{ 0, E_13, D_13, F_13 },
{ 0, E_14, D_14, F_14 },
{ 0, E_15, D_15, F_15 },
{ 1, B_1, A_1, C_1 },
{ 1, B_2, A_2, C_2 },
{ 1, B_3, A_3, C_3 },
{ 1, B_4, A_4, C_4 },
{ 1, B_5, A_5, C_5 },
{ 1, B_6, A_6, C_6 },
{ 1, B_7, A_7, C_7 },
{ 1, B_8, A_8, C_8 },
{ 1, B_9, A_9, C_9 },
{ 1, B_10, A_10, C_10 },
{ 1, B_11, A_11, C_11 },
{ 1, B_12, A_12, C_12 },
{ 1, B_13, A_13, C_13 },
{ 1, B_14, A_14, C_14 },
{ 1, E_1, D_1, F_1 },
{ 1, E_2, D_2, F_2 },
{ 1, E_3, D_3, F_3 },
{ 1, E_4, D_4, F_4 },
{ 1, E_5, D_5, F_5 },
{ 1, E_6, D_6, F_6 },
{ 1, E_7, D_7, F_7 },
{ 1, E_8, D_8, F_8 },
{ 1, E_9, D_9, F_9 },
{ 1, E_10, D_10, F_10 },
{ 1, E_11, D_11, F_11 },
{ 1, E_12, D_12, F_12 },
{ 1, E_13, D_13, F_13 },
{ 1, E_14, D_14, F_14 },
{ 1, H_1, G_1, I_1 },
{ 1, H_2, G_2, I_2 },
{ 1, H_3, G_3, I_3 },
{ 1, H_4, G_4, I_4 },
{ 1, H_5, G_5, I_5 },
{ 1, H_8, G_8, I_8 },
{ 1, H_9, G_9, I_9 },
{ 1, H_10, G_10, I_10 },
{ 1, H_11, G_11, I_11 },
};
#endif

View file

@ -0,0 +1,7 @@
// Copyright 2023 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define HAL_USE_I2C TRUE
#include_next <halconf.h>

View file

@ -0,0 +1,221 @@
{
"keyboard_name": "CSTM65",
"manufacturer": "Drop Inc.",
"maintainer": "zvecr",
"processor": "STM32F303",
"bootloader": "tinyuf2",
"diode_direction": "COL2ROW",
"matrix_pins": {
"cols": ["C15", "C14", "C13", "C12", "C11", "C10", "C9", "C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1"],
"rows": ["B15", "B14", "B13", "B12", "B11"]
},
"usb": {
"vid": "0x359B",
"pid": "0x0010",
"device_version": "1.0.0"
},
"eeprom": {
"driver": "i2c"
},
"features": {
"rgb_matrix": true,
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"community_layouts": ["65_ansi_blocker"],
"layouts": {
"LAYOUT_65_ansi_blocker": {
"layout": [
{"matrix": [0, 0], "label":"ESCAPE", "x":0, "y":0},
{"matrix": [0, 1], "label":"1", "x":1, "y":0},
{"matrix": [0, 2], "label":"2", "x":2, "y":0},
{"matrix": [0, 3], "label":"3", "x":3, "y":0},
{"matrix": [0, 4], "label":"4", "x":4, "y":0},
{"matrix": [0, 5], "label":"5", "x":5, "y":0},
{"matrix": [0, 6], "label":"6", "x":6, "y":0},
{"matrix": [0, 7], "label":"7", "x":7, "y":0},
{"matrix": [0, 8], "label":"8", "x":8, "y":0},
{"matrix": [0, 9], "label":"9", "x":9, "y":0},
{"matrix": [0, 10], "label":"0", "x":10, "y":0},
{"matrix": [0, 11], "label":"MINUS", "x":11, "y":0},
{"matrix": [0, 12], "label":"EQUALS", "x":12, "y":0},
{"matrix": [0, 13], "label":"BACKSPACE", "x":13, "y":0, "w":2},
{"matrix": [0, 14], "label":"DELETE", "x":15, "y":0},
{"matrix": [1, 0], "label":"TAB", "x":0, "y":1, "w":1.5},
{"matrix": [1, 1], "label":"Q", "x":1.5, "y":1},
{"matrix": [1, 2], "label":"W", "x":2.5, "y":1},
{"matrix": [1, 3], "label":"E", "x":3.5, "y":1},
{"matrix": [1, 4], "label":"R", "x":4.5, "y":1},
{"matrix": [1, 5], "label":"T", "x":5.5, "y":1},
{"matrix": [1, 6], "label":"Y", "x":6.5, "y":1},
{"matrix": [1, 7], "label":"U", "x":7.5, "y":1},
{"matrix": [1, 8], "label":"I", "x":8.5, "y":1},
{"matrix": [1, 9], "label":"O", "x":9.5, "y":1},
{"matrix": [1, 10], "label":"P", "x":10.5, "y":1},
{"matrix": [1, 11], "label":"LEFT BRACKET", "x":11.5, "y":1},
{"matrix": [1, 12], "label":"RIGHT BRACKET", "x":12.5, "y":1},
{"matrix": [1, 13], "label":"BACK SLASH", "x":13.5, "y":1, "w":1.5},
{"matrix": [1, 14], "label":"HOME", "x":15, "y":1},
{"matrix": [2, 0], "label":"CAPS LOCK", "x":0, "y":2, "w":1.75},
{"matrix": [2, 1], "label":"A", "x":1.75, "y":2},
{"matrix": [2, 2], "label":"S", "x":2.75, "y":2},
{"matrix": [2, 3], "label":"D", "x":3.75, "y":2},
{"matrix": [2, 4], "label":"F", "x":4.75, "y":2},
{"matrix": [2, 5], "label":"G", "x":5.75, "y":2},
{"matrix": [2, 6], "label":"H", "x":6.75, "y":2},
{"matrix": [2, 7], "label":"J", "x":7.75, "y":2},
{"matrix": [2, 8], "label":"K", "x":8.75, "y":2},
{"matrix": [2, 9], "label":"L", "x":9.75, "y":2},
{"matrix": [2, 10], "label":"SEMICOLON", "x":10.75, "y":2},
{"matrix": [2, 11], "label":"SINGLE TICK", "x":11.75, "y":2},
{"matrix": [2, 13], "label":"ENTER", "x":12.75, "y":2, "w":2.25},
{"matrix": [2, 14], "label":"PAGE UP", "x":15, "y":2},
{"matrix": [3, 0], "label":"LEFT SHIFT", "x":0, "y":3, "w":2.25},
{"matrix": [3, 1], "label":"Z", "x":2.25, "y":3},
{"matrix": [3, 2], "label":"X", "x":3.25, "y":3},
{"matrix": [3, 3], "label":"C", "x":4.25, "y":3},
{"matrix": [3, 4], "label":"V", "x":5.25, "y":3},
{"matrix": [3, 5], "label":"B", "x":6.25, "y":3},
{"matrix": [3, 6], "label":"N", "x":7.25, "y":3},
{"matrix": [3, 7], "label":"M", "x":8.25, "y":3},
{"matrix": [3, 8], "label":"COMMA", "x":9.25, "y":3},
{"matrix": [3, 9], "label":"PERIOD", "x":10.25, "y":3},
{"matrix": [3, 10], "label":"FORWARD SLASH", "x":11.25, "y":3},
{"matrix": [3, 12], "label":"RIGHT SHIFT", "x":12.25, "y":3, "w":1.75},
{"matrix": [3, 13], "label":"UP ARROW", "x":14, "y":3},
{"matrix": [3, 14], "label":"PAGE DOWN", "x":15, "y":3},
{"matrix": [4, 0], "label":"LEFT CTRL", "x":0, "y":4, "w":1.25},
{"matrix": [4, 1], "label":"LEFT WIN", "x":1.25, "y":4, "w":1.25},
{"matrix": [4, 2], "label":"LEFT ALT", "x":2.5, "y":4, "w":1.25},
{"matrix": [4, 6], "label":"SPACEBAR", "x":3.75, "y":4, "w":6.25},
{"matrix": [4, 10], "label":"RIGHT ALT", "x":10, "y":4, "w":1.25},
{"matrix": [4, 11], "label":"FN", "x":11.25, "y":4, "w":1.25},
{"matrix": [4, 12], "label":"LEFT ARROW", "x":13, "y":4},
{"matrix": [4, 13], "label":"DOWN ARROW", "x":14, "y":4},
{"matrix": [4, 14], "label":"RIGHT ARROW", "x":15, "y":4}
]
}
},
"rgb_matrix": {
"driver": "is31fl3733",
"sleep": true,
"animations": {
"alphas_mods": true,
"gradient_up_down": true,
"gradient_left_right": true,
"breathing": true,
"band_sat": true,
"band_val": true,
"band_pinwheel_sat": true,
"band_pinwheel_val": true,
"band_spiral_sat": true,
"band_spiral_val": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_up_down": true,
"cycle_out_in": true,
"cycle_out_in_dual": true,
"rainbow_moving_chevron": true,
"cycle_pinwheel": true,
"cycle_spiral": true,
"dual_beacon": true,
"rainbow_beacon": true,
"rainbow_pinwheels": true,
"raindrops": true,
"jellybean_raindrops": true,
"hue_breathing": true,
"hue_pendulum": true,
"hue_wave": true,
"pixel_fractal": true,
"pixel_flow": true,
"pixel_rain": true,
"typing_heatmap": true,
"digital_rain": true,
"solid_reactive_simple": true,
"solid_reactive": true,
"solid_reactive_wide": true,
"solid_reactive_multiwide": true,
"solid_reactive_cross": true,
"solid_reactive_multicross": true,
"solid_reactive_nexus": true,
"solid_reactive_multinexus": true,
"splash": true,
"multisplash": true,
"solid_splash": true,
"solid_multisplash": true
},
"layout": [
{ "flags": 4, "matrix": [0, 0], "x": 8, "y": 7 },
{ "flags": 4, "matrix": [0, 1], "x": 22, "y": 7 },
{ "flags": 4, "matrix": [0, 2], "x": 35, "y": 7 },
{ "flags": 4, "matrix": [0, 3], "x": 49, "y": 7 },
{ "flags": 4, "matrix": [0, 4], "x": 63, "y": 7 },
{ "flags": 4, "matrix": [0, 5], "x": 77, "y": 7 },
{ "flags": 4, "matrix": [0, 6], "x": 91, "y": 7 },
{ "flags": 4, "matrix": [0, 7], "x": 105, "y": 7 },
{ "flags": 4, "matrix": [0, 8], "x": 118, "y": 7 },
{ "flags": 4, "matrix": [0, 9], "x": 132, "y": 7 },
{ "flags": 4, "matrix": [0, 10], "x": 146, "y": 7 },
{ "flags": 4, "matrix": [0, 11], "x": 160, "y": 7 },
{ "flags": 4, "matrix": [0, 12], "x": 174, "y": 7 },
{ "flags": 4, "matrix": [0, 13], "x": 195, "y": 7 },
{ "flags": 4, "matrix": [0, 14], "x": 215, "y": 7 },
{ "flags": 4, "matrix": [1, 0], "x": 11, "y": 19 },
{ "flags": 4, "matrix": [1, 1], "x": 28, "y": 19 },
{ "flags": 4, "matrix": [1, 2], "x": 42, "y": 19 },
{ "flags": 4, "matrix": [1, 3], "x": 56, "y": 19 },
{ "flags": 4, "matrix": [1, 4], "x": 70, "y": 19 },
{ "flags": 4, "matrix": [1, 5], "x": 84, "y": 19 },
{ "flags": 4, "matrix": [1, 6], "x": 98, "y": 19 },
{ "flags": 4, "matrix": [1, 7], "x": 112, "y": 19 },
{ "flags": 4, "matrix": [1, 8], "x": 125, "y": 19 },
{ "flags": 4, "matrix": [1, 9], "x": 139, "y": 19 },
{ "flags": 4, "matrix": [1, 10], "x": 153, "y": 19 },
{ "flags": 4, "matrix": [1, 11], "x": 167, "y": 19 },
{ "flags": 4, "matrix": [1, 12], "x": 181, "y": 19 },
{ "flags": 4, "matrix": [1, 13], "x": 198, "y": 19 },
{ "flags": 4, "matrix": [1, 14], "x": 215, "y": 19 },
{ "flags": 4, "matrix": [2, 0], "x": 13, "y": 32 },
{ "flags": 4, "matrix": [2, 1], "x": 32, "y": 32 },
{ "flags": 4, "matrix": [2, 2], "x": 46, "y": 32 },
{ "flags": 4, "matrix": [2, 3], "x": 60, "y": 32 },
{ "flags": 4, "matrix": [2, 4], "x": 73, "y": 32 },
{ "flags": 4, "matrix": [2, 5], "x": 87, "y": 32 },
{ "flags": 4, "matrix": [2, 6], "x": 101, "y": 32 },
{ "flags": 4, "matrix": [2, 7], "x": 115, "y": 32 },
{ "flags": 4, "matrix": [2, 8], "x": 129, "y": 32 },
{ "flags": 4, "matrix": [2, 9], "x": 143, "y": 32 },
{ "flags": 4, "matrix": [2, 10], "x": 156, "y": 32 },
{ "flags": 4, "matrix": [2, 11], "x": 170, "y": 32 },
{ "flags": 4, "matrix": [2, 13], "x": 193, "y": 32 },
{ "flags": 4, "matrix": [2, 14], "x": 215, "y": 32 },
{ "flags": 4, "matrix": [3, 0], "x": 16, "y": 44 },
{ "flags": 4, "matrix": [3, 1], "x": 39, "y": 44 },
{ "flags": 4, "matrix": [3, 2], "x": 53, "y": 44 },
{ "flags": 4, "matrix": [3, 3], "x": 67, "y": 44 },
{ "flags": 4, "matrix": [3, 4], "x": 80, "y": 44 },
{ "flags": 4, "matrix": [3, 5], "x": 94, "y": 44 },
{ "flags": 4, "matrix": [3, 6], "x": 108, "y": 44 },
{ "flags": 4, "matrix": [3, 7], "x": 122, "y": 44 },
{ "flags": 4, "matrix": [3, 8], "x": 136, "y": 44 },
{ "flags": 4, "matrix": [3, 9], "x": 150, "y": 44 },
{ "flags": 4, "matrix": [3, 10], "x": 163, "y": 44 },
{ "flags": 4, "matrix": [3, 12], "x": 182, "y": 44 },
{ "flags": 4, "matrix": [3, 13], "x": 201, "y": 44 },
{ "flags": 4, "matrix": [3, 14], "x": 215, "y": 44 },
{ "flags": 4, "matrix": [4, 0], "x": 9, "y": 56 },
{ "flags": 4, "matrix": [4, 1], "x": 27, "y": 56 },
{ "flags": 4, "matrix": [4, 2], "x": 44, "y": 56 },
{ "flags": 4, "matrix": [4, 6], "x": 96, "y": 56 },
{ "flags": 4, "matrix": [4, 10], "x": 148, "y": 56 },
{ "flags": 4, "matrix": [4, 11], "x": 165, "y": 56 },
{ "flags": 4, "matrix": [4, 12], "x": 188, "y": 56 },
{ "flags": 4, "matrix": [4, 13], "x": 201, "y": 56 },
{ "flags": 4, "matrix": [4, 14], "x": 215, "y": 56 }
]
}
}

View file

@ -0,0 +1,20 @@
// Copyright 2023 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_65_ansi_blocker(
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_HOME,
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_PGUP,
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, KC_PGDN,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT_65_ansi_blocker(
KC_GRV, 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_MUTE,
_______, RGB_TOG, RGB_VAI, RGB_SPI, RGB_HUI, RGB_SAI, _______, _______, _______, _______, KC_PSCR, KC_SCRL, KC_PAUS, _______, KC_END,
_______, RGB_MOD, RGB_VAD, RGB_SPD, RGB_HUD, RGB_SAD, _______, _______, _______, _______, _______, _______, _______, KC_VOLU,
_______, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW,QK_BOOT, NK_TOGG, _______, _______, _______, _______, _______, KC_PGUP, KC_VOLD,
_______, _______, _______, EE_CLR, KC_APP, _______, KC_HOME, KC_PGDN, KC_END
)
};

View file

@ -0,0 +1,5 @@
// Copyright 2023 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define DYNAMIC_KEYMAP_LAYER_COUNT 8

View file

@ -0,0 +1,20 @@
// Copyright 2023 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_65_ansi_blocker(
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_HOME,
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_PGUP,
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, KC_PGDN,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT_65_ansi_blocker(
KC_GRV, 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_MUTE,
_______, RGB_TOG, RGB_VAI, RGB_SPI, RGB_HUI, RGB_SAI, _______, _______, _______, _______, KC_PSCR, KC_SCRL, KC_PAUS, _______, KC_END,
_______, RGB_MOD, RGB_VAD, RGB_SPD, RGB_HUD, RGB_SAD, _______, _______, _______, _______, _______, _______, _______, KC_VOLU,
_______, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW,QK_BOOT, NK_TOGG, _______, _______, _______, _______, _______, KC_PGUP, KC_VOLD,
_______, _______, _______, EE_CLR, KC_APP, _______, KC_HOME, KC_PGDN, KC_END
)
};

View file

@ -0,0 +1 @@
VIA_ENABLE = yes

View file

@ -0,0 +1,14 @@
// Copyright 2023 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include_next <mcuconf.h>
#undef STM32_PLLM_VALUE
#define STM32_PLLM_VALUE 16
#undef STM32_PREDIV_VALUE
#define STM32_PREDIV_VALUE 2
#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

View file

@ -0,0 +1,24 @@
# CSTM65
The CSTM65 is a 65% keyboard with customizable switch plates and weights, as well as a magnetically attached top case.
* Keyboard Maintainer: [zvecr](https://github.com/zvecr)
* Hardware Availability: [Drop CSTM65 Mechanical Keyboard](https://drop.com/buy/drop-cstm65-mechanical-keyboard)
Make example for this keyboard (after setting up your build environment):
make drop/cstm65:default
Flashing example for this keyboard:
make drop/cstm65: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**: Quickly double tap the button located under the spacebar
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available

View file

@ -0,0 +1,4 @@
UF2_DEVICE_TYPE_ID = 0x216d9c07
UF2CONV_ARGS = --device-type $(UF2_DEVICE_TYPE_ID)
SRC += lib/common.c

View file

@ -0,0 +1,21 @@
/* Copyright 2022 Yiancar-Designs
*
* 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 "quantum.h"
void led_init_ports(void) {
// Set our LED pins as open drain outputs
setPinOutputOpenDrain(LED_CAPS_LOCK_PIN);
}

View file

@ -0,0 +1,108 @@
{
"manufacturer": "Yiancar-Designs",
"keyboard_name": "Event Horizon",
"maintainer": "Yiancar-Designs",
"bootloader": "stm32-dfu",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"indicators": {
"caps_lock": "B6",
"on_state": 0
},
"matrix_pins": {
"cols": ["A1", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "B2", "B10", "B11", "B12", "B13", "B14", "B15", "B3"],
"rows": ["A2", "B9", "B8", "B5", "B4"]
},
"processor": "STM32F072",
"url": "https://yiancar-designs.com",
"usb": {
"device_version": "0.0.1",
"pid": "0x4648",
"vid": "0x8968"
},
"layouts": {
"LAYOUT": {
"layout": [
{"matrix": [0, 0], "x": 1.25, "y": 0},
{"matrix": [0, 1], "x": 2.25, "y": 0},
{"matrix": [0, 2], "x": 3.25, "y": 0},
{"matrix": [0, 3], "x": 4.25, "y": 0},
{"matrix": [0, 4], "x": 5.25, "y": 0},
{"matrix": [0, 5], "x": 6.25, "y": 0},
{"matrix": [0, 6], "x": 7.25, "y": 0},
{"matrix": [0, 7], "x": 8.25, "y": 0},
{"matrix": [0, 8], "x": 9.25, "y": 0},
{"matrix": [0, 9], "x": 10.25, "y": 0},
{"matrix": [0, 10], "x": 11.25, "y": 0},
{"matrix": [0, 11], "x": 12.25, "y": 0},
{"matrix": [0, 12], "x": 13.25, "y": 0},
{"matrix": [0, 13], "x": 14.25, "y": 0},
{"matrix": [2, 12], "x": 15.25, "y": 0},
{"matrix": [0, 14], "x": 16.25, "y": 0},
{"matrix": [1, 15], "x": 0, "y": 1},
{"matrix": [1, 0], "x": 1.25, "y": 1, "w": 1.5},
{"matrix": [1, 1], "x": 2.75, "y": 1},
{"matrix": [1, 2], "x": 3.75, "y": 1},
{"matrix": [1, 3], "x": 4.75, "y": 1},
{"matrix": [1, 4], "x": 5.75, "y": 1},
{"matrix": [1, 5], "x": 6.75, "y": 1},
{"matrix": [1, 6], "x": 7.75, "y": 1},
{"matrix": [1, 7], "x": 8.75, "y": 1},
{"matrix": [1, 8], "x": 9.75, "y": 1},
{"matrix": [1, 9], "x": 10.75, "y": 1},
{"matrix": [1, 10], "x": 11.75, "y": 1},
{"matrix": [1, 11], "x": 12.75, "y": 1},
{"matrix": [1, 12], "x": 13.75, "y": 1},
{"matrix": [1, 13], "x": 14.75, "y": 1, "w": 1.5},
{"matrix": [1, 14], "x": 16.25, "y": 1},
{"matrix": [2, 15], "x": 0, "y": 2},
{"matrix": [2, 0], "x": 1.25, "y": 2, "w": 1.75},
{"matrix": [2, 1], "x": 3, "y": 2},
{"matrix": [2, 2], "x": 4, "y": 2},
{"matrix": [2, 3], "x": 5, "y": 2},
{"matrix": [2, 4], "x": 6, "y": 2},
{"matrix": [2, 5], "x": 7, "y": 2},
{"matrix": [2, 6], "x": 8, "y": 2},
{"matrix": [2, 7], "x": 9, "y": 2},
{"matrix": [2, 8], "x": 10, "y": 2},
{"matrix": [2, 9], "x": 11, "y": 2},
{"matrix": [2, 10], "x": 12, "y": 2},
{"matrix": [2, 11], "x": 13, "y": 2},
{"matrix": [2, 13], "x": 14, "y": 2, "w": 2.25},
{"matrix": [2, 14], "x": 16.25, "y": 2},
{"matrix": [3, 15], "x": 0, "y": 3},
{"matrix": [3, 0], "x": 1.25, "y": 3, "w": 1.25},
{"matrix": [3, 1], "x": 2.5, "y": 3},
{"matrix": [3, 2], "x": 3.5, "y": 3},
{"matrix": [3, 3], "x": 4.5, "y": 3},
{"matrix": [3, 4], "x": 5.5, "y": 3},
{"matrix": [3, 5], "x": 6.5, "y": 3},
{"matrix": [3, 6], "x": 7.5, "y": 3},
{"matrix": [3, 7], "x": 8.5, "y": 3},
{"matrix": [3, 8], "x": 9.5, "y": 3},
{"matrix": [3, 9], "x": 10.5, "y": 3},
{"matrix": [3, 10], "x": 11.5, "y": 3},
{"matrix": [3, 11], "x": 12.5, "y": 3},
{"matrix": [3, 12], "x": 13.5, "y": 3, "w": 1.75},
{"matrix": [3, 13], "x": 15.25, "y": 3},
{"matrix": [3, 14], "x": 16.25, "y": 3},
{"matrix": [4, 15], "x": 0, "y": 4},
{"matrix": [4, 0], "x": 1.25, "y": 4, "w": 1.5},
{"matrix": [4, 1], "x": 2.75, "y": 4},
{"matrix": [4, 2], "x": 3.75, "y": 4, "w": 1.5},
{"matrix": [4, 6], "x": 5.25, "y": 4, "w": 7},
{"matrix": [4, 11], "x": 12.25, "y": 4, "w": 1.5},
{"matrix": [4, 12], "x": 14.25, "y": 4},
{"matrix": [4, 13], "x": 15.25, "y": 4},
{"matrix": [4, 14], "x": 16.25, "y": 4}
]
}
}
}

View file

@ -0,0 +1,32 @@
/* Copyright 2022 Yiancar-Designs
*
* 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( /* Base */
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_HOME,
KC_F1, 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_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_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_F4, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
[1] = LAYOUT( /* FN */
KC_GRV, 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_DEL, 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_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_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
};

View file

@ -0,0 +1,32 @@
/* Copyright 2022 Yiancar-Designs
*
* 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( /* Base */
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_HOME,
KC_F1, 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_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_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_F4, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
[1] = LAYOUT( /* FN */
KC_GRV, 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_DEL, 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_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_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
};

View file

@ -0,0 +1 @@
VIA_ENABLE = yes

View file

@ -0,0 +1,32 @@
# Event Horizon
This is a 65% with XT column on the left layout PCB. It supports VIA.
* Keyboard Maintainer: [Yiancar](http://yiancar-designs.com/) and on [GitHub](https://github.com/yiancar)
* Hardware Supported: The trio of PCBs for the Event Horizon Keyboard using an STM32F072CB
* Hardware Availability: https://protozoa.studio
## Instructions
### Build
Make example for this keyboard (after setting up your build environment):
make protozoa/event_horizon:default
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).
### Reset
- Unplug
- Hold Escape
- Plug In
- Unplug
- Release Escape
### Flash
- Unplug
- Hold Escape
- Plug In
- Flash using QMK Toolbox or CLI (`make protozoa/event_horizon:<keymap>:flash`)

View file

@ -0,0 +1,2 @@
# Wildcard to allow APM32 MCU
DFU_SUFFIX_ARGS = -v FFFF -p FFFF