Add LED/RGB Matrix drivers to info.json schema (#23127)

This commit is contained in:
Ryan 2024-02-26 08:29:25 +11:00 committed by GitHub
parent 56802f506c
commit 14d1d9639c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 56 additions and 34 deletions

View file

@ -8,7 +8,7 @@
"properties": { "properties": {
"driver": { "driver": {
"type": "string", "type": "string",
"enum": ["quadrature", "custom"] "enum": ["custom", "quadrature"]
}, },
"rotary": { "rotary": {
"type": "array", "type": "array",
@ -28,14 +28,12 @@
"dip_switch_config": { "dip_switch_config": {
"type": "object", "type": "object",
"properties": { "properties": {
"pins": { "pins": {"$ref": "qmk.definitions.v1#/mcu_pin_array"}
"$ref": "qmk.definitions.v1#/mcu_pin_array"
}
} }
}, }
}, },
"type": "object", "type": "object",
"not": { "required": [ "vendorId", "productId" ] }, // reject via keys... "not": {"required": ["vendorId", "productId"]}, // reject via keys...
"properties": { "properties": {
"keyboard_name": {"$ref": "qmk.definitions.v1#/text_identifier"}, "keyboard_name": {"$ref": "qmk.definitions.v1#/text_identifier"},
"keyboard_folder": {"$ref": "qmk.definitions.v1#/keyboard"}, "keyboard_folder": {"$ref": "qmk.definitions.v1#/keyboard"},
@ -146,7 +144,7 @@
"properties": { "properties": {
"driver": { "driver": {
"type": "string", "type": "string",
"enum": ["pwm", "software", "timer", "custom"] "enum": ["custom", "pwm", "software", "timer"]
}, },
"default": { "default": {
"type": "object", "type": "object",
@ -318,8 +316,8 @@
}, },
"features": { "features": {
"$ref": "qmk.definitions.v1#/boolean_array", "$ref": "qmk.definitions.v1#/boolean_array",
"propertyNames": { "$ref": "qmk.definitions.v1#/snake_case" }, "propertyNames": {"$ref": "qmk.definitions.v1#/snake_case"},
"not": { "required": [ "lto" ] } "not": {"required": ["lto"]}
}, },
"indicators": { "indicators": {
"type": "object", "type": "object",
@ -344,15 +342,9 @@
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"filename": { "filename": {"type": "string"},
"type": "string" "c_macro": {"type": "boolean"},
}, "json_layout": {"type": "boolean"},
"c_macro": {
"type": "boolean"
},
"json_layout": {
"type": "boolean"
},
"layout": { "layout": {
"type": "array", "type": "array",
"items": { "items": {
@ -435,10 +427,8 @@
"properties": { "properties": {
"animations": { "animations": {
"type": "object", "type": "object",
"propertyNames": { "$ref": "qmk.definitions.v1#/snake_case" } "propertyNames": {"$ref": "qmk.definitions.v1#/snake_case"},
"additionalProperties": { "additionalProperties": {"type": "boolean"}
"type": "boolean"
}
}, },
"default": { "default": {
"type": "object", "type": "object",
@ -450,7 +440,24 @@
"speed": {"$ref": "qmk.definitions.v1#/unsigned_int_8"} "speed": {"$ref": "qmk.definitions.v1#/unsigned_int_8"}
} }
}, },
"driver": {"type": "string"}, "driver": {
"type": "string",
"enum": [
"custom",
"is31fl3218",
"is31fl3729",
"is31fl3731",
"is31fl3733",
"is31fl3736",
"is31fl3737",
"is31fl3741",
"is31fl3742a",
"is31fl3743a",
"is31fl3745",
"is31fl3746a",
"snled27351"
]
},
"center_point": { "center_point": {
"type": "array", "type": "array",
"minItems": 2, "minItems": 2,
@ -499,10 +506,8 @@
"properties": { "properties": {
"animations": { "animations": {
"type": "object", "type": "object",
"propertyNames": { "$ref": "qmk.definitions.v1#/snake_case" } "propertyNames": {"$ref": "qmk.definitions.v1#/snake_case"},
"additionalProperties": { "additionalProperties": {"type": "boolean"}
"type": "boolean"
}
}, },
"default": { "default": {
"type": "object", "type": "object",
@ -516,7 +521,26 @@
"speed": {"$ref": "qmk.definitions.v1#/unsigned_int_8"} "speed": {"$ref": "qmk.definitions.v1#/unsigned_int_8"}
} }
}, },
"driver": {"type": "string"}, "driver": {
"type": "string",
"enum": [
"aw20216s",
"custom",
"is31fl3218",
"is31fl3729",
"is31fl3731",
"is31fl3733",
"is31fl3736",
"is31fl3737",
"is31fl3741",
"is31fl3742a",
"is31fl3743a",
"is31fl3745",
"is31fl3746a",
"snled27351",
"ws2812"
]
},
"center_point": { "center_point": {
"type": "array", "type": "array",
"minItems": 2, "minItems": 2,
@ -568,10 +592,8 @@
"properties": { "properties": {
"animations": { "animations": {
"type": "object", "type": "object",
"propertyNames": { "$ref": "qmk.definitions.v1#/snake_case" } "propertyNames": {"$ref": "qmk.definitions.v1#/snake_case"},
"additionalProperties": { "additionalProperties": {"type": "boolean"}
"type": "boolean"
}
}, },
"brightness_steps": {"$ref": "qmk.definitions.v1#/unsigned_int"}, "brightness_steps": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"default": { "default": {
@ -774,7 +796,7 @@
"st7565": {"type": "boolean"}, "st7565": {"type": "boolean"},
"wpm": {"type": "boolean"} "wpm": {"type": "boolean"}
} }
} },
"watchdog": {"type": "boolean"}, "watchdog": {"type": "boolean"},
"watchdog_timeout": {"$ref": "qmk.definitions.v1#/unsigned_int"}, "watchdog_timeout": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"sync_matrix_state": { "sync_matrix_state": {

View file

@ -35,7 +35,7 @@
] ]
}, },
"rgb_matrix": { "rgb_matrix": {
"driver": "aw20216", "driver": "aw20216s",
"max_brightness": 108, "max_brightness": 108,
"animations": { "animations": {
"alphas_mods": true, "alphas_mods": true,