diff options
author | Ryan <fauxpark@gmail.com> | 2023-03-30 12:21:02 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 12:21:02 +1100 |
commit | 647c2835e65995339fb9380830c53725a62f6299 (patch) | |
tree | 8e5b96ea65f2a4c5e0990ac09dfc7f019ac1b90e /data | |
parent | 7e1e662dc704736b88cc4a7487457638b72f54e8 (diff) |
WS2812 driver improvements (#20262)
Diffstat (limited to 'data')
-rw-r--r-- | data/mappings/info_config.hjson | 2 | ||||
-rw-r--r-- | data/schemas/keyboard.jsonschema | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/data/mappings/info_config.hjson b/data/mappings/info_config.hjson index 239813473c..21d9d49104 100644 --- a/data/mappings/info_config.hjson +++ b/data/mappings/info_config.hjson @@ -119,6 +119,8 @@ "USB_MAX_POWER_CONSUMPTION": {"info_key": "usb.max_power", "value_type": "int"}, "USB_POLLING_INTERVAL_MS": {"info_key": "usb.polling_interval", "value_type": "int"}, "USB_SUSPEND_WAKEUP_DELAY": {"info_key": "usb.suspend_wakeup_delay", "value_type": "int"}, + "WS2812_I2C_ADDRESS": {"info_key": "ws2812.i2c_address", "value_type": "hex"}, + "WS2812_I2C_TIMEOUT": {"info_key": "ws2812.i2c_timeout", "value_type": "int"}, // Items we want flagged in lint "NO_ACTION_MACRO": {"info_key": "_invalid.no_action_macro", "invalid": true}, diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema index 18b3514aa5..47decf1a15 100644 --- a/data/schemas/keyboard.jsonschema +++ b/data/schemas/keyboard.jsonschema @@ -707,8 +707,10 @@ "properties": { "driver": { "type": "string", - "enum": ["bitbang", "i2c", "pwm", "spi", "vendor"] - } + "enum": ["bitbang", "custom", "i2c", "pwm", "spi", "vendor"] + }, + "i2c_address": {"$ref": "qmk.definitions.v1#/hex_number_2d"}, + "i2c_timeout": {"$ref": "qmk.definitions.v1#/unsigned_int"} } } } |