summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-09-19 05:32:47 +1000
committerGitHub <noreply@github.com>2022-09-18 20:32:47 +0100
commit0f5cfc0363b95f61a54bf83135780ac6e51de8ea (patch)
tree537d5c68839392e956738e82454d2049997f13e4
parent11551406317578085bcac124d6857c0aca4133e0 (diff)
Add DD mapping for LED/RGB Matrix max brightness (#18403)
-rw-r--r--data/mappings/info_config.json2
-rw-r--r--data/schemas/keyboard.jsonschema2
2 files changed, 4 insertions, 0 deletions
diff --git a/data/mappings/info_config.json b/data/mappings/info_config.json
index eb11f87e7d..fd69c01f08 100644
--- a/data/mappings/info_config.json
+++ b/data/mappings/info_config.json
@@ -38,6 +38,7 @@
"LED_COMPOSE_PIN": {"info_key": "indicators.compose"},
"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"},
"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"},
@@ -77,6 +78,7 @@
"RGBLIGHT_VAL_STEP": {"info_key": "rgblight.brightness_steps", "value_type": "int"},
"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"},
"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 1b62f30eba..bf095aadfd 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -265,6 +265,7 @@
"type": "object",
"properties": {
"driver": {"type": "string"},
+ "max_brightness": {"$ref": "qmk.definitions.v1#/unsigned_int_8"},
"layout": {
"type": "array",
"items": {
@@ -292,6 +293,7 @@
"type": "object",
"properties": {
"driver": {"type": "string"},
+ "max_brightness": {"$ref": "qmk.definitions.v1#/unsigned_int_8"},
"layout": {
"type": "array",
"items": {