summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-09-19 07:57:50 +1000
committerGitHub <noreply@github.com>2022-09-18 22:57:50 +0100
commit8beb61b790d215a365298d3aa865ebf1ebf78d8c (patch)
tree538267c5d1f7f1698aa7be5efe49ff91bc161367 /data
parent1849897444629403fc2e473da6d6f74f8f4f1b8c (diff)
Add DD mapping for LED/RGB Matrix split count (#18408)
Diffstat (limited to 'data')
-rw-r--r--data/mappings/info_config.json2
-rw-r--r--data/schemas/keyboard.jsonschema12
2 files changed, 14 insertions, 0 deletions
diff --git a/data/mappings/info_config.json b/data/mappings/info_config.json
index fd69c01f08..34c46d6d89 100644
--- a/data/mappings/info_config.json
+++ b/data/mappings/info_config.json
@@ -39,6 +39,7 @@
"LED_KANA_PIN": {"info_key": "indicators.kana"},
"LED_PIN_ON_STATE": {"info_key": "indicators.on_state", "value_type": "int"},
"LED_MATRIX_MAXIMUM_BRIGHTNESS": {"info_key": "led_matrix.max_brightness", "value_type": "int"},
+ "LED_MATRIX_SPLIT": {"info_key": "led_matrix.split_count", "value_type": "array.int"},
"MANUFACTURER": {"info_key": "manufacturer", "value_type": "str"},
"MATRIX_HAS_GHOST": {"info_key": "matrix_pins.ghost", "value_type": "bool"},
"MATRIX_IO_DELAY": {"info_key": "matrix_pins.io_delay", "value_type": "int"},
@@ -79,6 +80,7 @@
"RGBLIGHT_SLEEP": {"info_key": "rgblight.sleep", "value_type": "bool"},
"RGBLIGHT_SPLIT": {"info_key": "rgblight.split", "value_type": "bool"},
"RGB_MATRIX_MAXIMUM_BRIGHTNESS": {"info_key": "rgb_matrix.max_brightness", "value_type": "int"},
+ "RGB_MATRIX_SPLIT": {"info_key": "rgb_matrix.split_count", "value_type": "array.int"},
"RGBW": {"info_key": "rgblight.rgbw", "value_type": "bool"},
"PRODUCT": {"info_key": "keyboard_name", "warn_duplicate": false, "value_type": "str"},
"PRODUCT_ID": {"info_key": "usb.pid", "value_type": "hex"},
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index bf095aadfd..e82dacaac4 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -266,6 +266,12 @@
"properties": {
"driver": {"type": "string"},
"max_brightness": {"$ref": "qmk.definitions.v1#/unsigned_int_8"},
+ "split_count": {
+ "type": "array",
+ "minItems": 2,
+ "maxItems": 2,
+ "items": {"$ref": "qmk.definitions.v1#/unsigned_int"}
+ },
"layout": {
"type": "array",
"items": {
@@ -294,6 +300,12 @@
"properties": {
"driver": {"type": "string"},
"max_brightness": {"$ref": "qmk.definitions.v1#/unsigned_int_8"},
+ "split_count": {
+ "type": "array",
+ "minItems": 2,
+ "maxItems": 2,
+ "items": {"$ref": "qmk.definitions.v1#/unsigned_int"}
+ },
"layout": {
"type": "array",
"items": {