diff options
| author | Joel Challis <git@zvecr.com> | 2023-11-01 00:55:48 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-01 00:55:48 +0000 |
| commit | a19ae3d78466588caa9caf7c38d1617932255733 (patch) | |
| tree | c559d39f852ed6016ea677a630d10130e0cc71af /data | |
| parent | b52aca0af83fade24c56b4bb7369f18183123bd3 (diff) | |
Add dd mapping for hardware based split handedness (#22369)
Diffstat (limited to 'data')
| -rw-r--r-- | data/mappings/info_config.hjson | 2 | ||||
| -rw-r--r-- | data/schemas/keyboard.jsonschema | 21 |
2 files changed, 19 insertions, 4 deletions
diff --git a/data/mappings/info_config.hjson b/data/mappings/info_config.hjson index 9b65c73084..2ad0135950 100644 --- a/data/mappings/info_config.hjson +++ b/data/mappings/info_config.hjson | |||
| @@ -154,6 +154,8 @@ | |||
| 154 | // Split Keyboard | 154 | // Split Keyboard |
| 155 | "SOFT_SERIAL_PIN": {"info_key": "split.soft_serial_pin"}, | 155 | "SOFT_SERIAL_PIN": {"info_key": "split.soft_serial_pin"}, |
| 156 | "SOFT_SERIAL_SPEED": {"info_key": "split.soft_serial_speed"}, | 156 | "SOFT_SERIAL_SPEED": {"info_key": "split.soft_serial_speed"}, |
| 157 | "SPLIT_HAND_MATRIX_GRID": {"info_key": "split.handedness.matrix_grid", "value_type": "array", "to_c": false}, | ||
| 158 | "SPLIT_HAND_PIN": {"info_key": "split.handedness.pin"}, | ||
| 157 | "SPLIT_USB_DETECT": {"info_key": "split.usb_detect.enabled", "value_type": "bool"}, | 159 | "SPLIT_USB_DETECT": {"info_key": "split.usb_detect.enabled", "value_type": "bool"}, |
| 158 | "SPLIT_USB_TIMEOUT": {"info_key": "split.usb_detect.timeout", "value_type": "int"}, | 160 | "SPLIT_USB_TIMEOUT": {"info_key": "split.usb_detect.timeout", "value_type": "int"}, |
| 159 | "SPLIT_USB_TIMEOUT_POLL": {"info_key": "split.usb_detect.polling_interval", "value_type": "int"}, | 161 | "SPLIT_USB_TIMEOUT_POLL": {"info_key": "split.usb_detect.polling_interval", "value_type": "int"}, |
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 @@ | |||
| 640 | } | 640 | } |
| 641 | } | 641 | } |
| 642 | }, | 642 | }, |
| 643 | "matrix_grid": { | ||
| 644 | "type": "array", | ||
| 645 | "items": {"$ref": "qmk.definitions.v1#/mcu_pin"} | ||
| 646 | }, | ||
| 647 | "matrix_pins": { | 643 | "matrix_pins": { |
| 648 | "type": "object", | 644 | "type": "object", |
| 649 | "additionalProperties": false, | 645 | "additionalProperties": false, |
| @@ -681,6 +677,18 @@ | |||
| 681 | } | 677 | } |
| 682 | } | 678 | } |
| 683 | }, | 679 | }, |
| 680 | "handedness": { | ||
| 681 | "type": "object", | ||
| 682 | "additionalProperties": false, | ||
| 683 | "properties": { | ||
| 684 | "pin": {"$ref": "qmk.definitions.v1#/mcu_pin"}, | ||
| 685 | "matrix_grid": { | ||
| 686 | "$ref": "qmk.definitions.v1#/mcu_pin_array", | ||
| 687 | "minItems": 2, | ||
| 688 | "maxItems": 2 | ||
| 689 | } | ||
| 690 | } | ||
| 691 | }, | ||
| 684 | "soft_serial_pin": {"$ref": "qmk.definitions.v1#/mcu_pin"}, | 692 | "soft_serial_pin": {"$ref": "qmk.definitions.v1#/mcu_pin"}, |
| 685 | "soft_serial_speed": { | 693 | "soft_serial_speed": { |
| 686 | "type": "integer", | 694 | "type": "integer", |
| @@ -736,6 +744,11 @@ | |||
| 736 | "type": "string", | 744 | "type": "string", |
| 737 | "enum": ["eeprom", "left", "matrix_grid", "pin", "right"], | 745 | "enum": ["eeprom", "left", "matrix_grid", "pin", "right"], |
| 738 | "$comment": "Deprecated: use config.h options for now" | 746 | "$comment": "Deprecated: use config.h options for now" |
| 747 | }, | ||
| 748 | "matrix_grid": { | ||
| 749 | "type": "array", | ||
| 750 | "items": {"$ref": "qmk.definitions.v1#/mcu_pin"}, | ||
| 751 | "$comment": "Deprecated: use split.handedness.matrix_grid instead" | ||
| 739 | } | 752 | } |
| 740 | } | 753 | } |
| 741 | }, | 754 | }, |
