diff options
author | Joel Challis <[email protected]> | 2023-11-01 00:55:48 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-11-01 00:55:48 +0000 |
commit | a19ae3d78466588caa9caf7c38d1617932255733 (patch) | |
tree | c559d39f852ed6016ea677a630d10130e0cc71af /data/schemas | |
parent | b52aca0af83fade24c56b4bb7369f18183123bd3 (diff) | |
download | qmk_firmware-a19ae3d78466588caa9caf7c38d1617932255733.tar.gz qmk_firmware-a19ae3d78466588caa9caf7c38d1617932255733.zip |
Add dd mapping for hardware based split handedness (#22369)
Diffstat (limited to 'data/schemas')
-rw-r--r-- | data/schemas/keyboard.jsonschema | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema index 20216a7f86..188e0a5b3c 100644 --- a/data/schemas/keyboard.jsonschema +++ b/data/schemas/keyboard.jsonschema @@ -640,10 +640,6 @@ } } }, - "matrix_grid": { - "type": "array", - "items": {"$ref": "qmk.definitions.v1#/mcu_pin"} - }, "matrix_pins": { "type": "object", "additionalProperties": false, @@ -681,6 +677,18 @@ } } }, + "handedness": { + "type": "object", + "additionalProperties": false, + "properties": { + "pin": {"$ref": "qmk.definitions.v1#/mcu_pin"}, + "matrix_grid": { + "$ref": "qmk.definitions.v1#/mcu_pin_array", + "minItems": 2, + "maxItems": 2 + } + } + }, "soft_serial_pin": {"$ref": "qmk.definitions.v1#/mcu_pin"}, "soft_serial_speed": { "type": "integer", @@ -736,6 +744,11 @@ "type": "string", "enum": ["eeprom", "left", "matrix_grid", "pin", "right"], "$comment": "Deprecated: use config.h options for now" + }, + "matrix_grid": { + "type": "array", + "items": {"$ref": "qmk.definitions.v1#/mcu_pin"}, + "$comment": "Deprecated: use split.handedness.matrix_grid instead" } } }, |