summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-06-14 22:01:13 +1000
committerGitHub <noreply@github.com>2023-06-14 22:01:13 +1000
commit9551a0a38aca3d32e38a123ae2854a8c82b26195 (patch)
treeb246fae82fe993ad7d7aabc51cc2fa408f8517b5 /data
parent6c4286152f924fc98a6f18e14987f1db6e55ae5e (diff)
Move `RGBLIGHT_LED_MAP` to data driven (#21095)
Diffstat (limited to 'data')
-rw-r--r--data/mappings/info_config.hjson1
-rw-r--r--data/schemas/keyboard.jsonschema5
2 files changed, 6 insertions, 0 deletions
diff --git a/data/mappings/info_config.hjson b/data/mappings/info_config.hjson
index e53d90da39..56d6216c42 100644
--- a/data/mappings/info_config.hjson
+++ b/data/mappings/info_config.hjson
@@ -117,6 +117,7 @@
"RGBLIGHT_LAYER_BLINK": {"info_key": "rgblight.layers.blink", "value_type": "bool"},
"RGBLIGHT_LAYERS": {"info_key": "rgblight.layers.enabled", "value_type": "bool"},
"RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF": {"info_key": "rgblight.layers.override_rgb", "value_type": "bool"},
+ "RGBLIGHT_LED_MAP": {"info_key": "rgblight.led_map", "value_type": "array.int"},
"RGBLIGHT_LIMIT_VAL": {"info_key": "rgblight.max_brightness", "value_type": "int"},
"RGBLIGHT_MAX_LAYERS": {"info_key": "rgblight.layers.max", "value_type": "int"},
"RGBLIGHT_SAT_STEP": {"info_key": "rgblight.saturation_steps", "value_type": "int"},
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index ba4a7eec55..a6213d6a7c 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -491,6 +491,11 @@
}
},
"led_count": {"$ref": "qmk.definitions.v1#/unsigned_int"},
+ "led_map": {
+ "type": "array",
+ "minItems": 2,
+ "items": {"$ref": "qmk.definitions.v1#/unsigned_int"}
+ },
"max_brightness": {"$ref": "qmk.definitions.v1#/unsigned_int_8"},
"pin": {
"$ref": "qmk.definitions.v1#/mcu_pin",