UPD: Change schema to hsv
This commit is contained in:
@@ -30,21 +30,22 @@
|
|||||||
},
|
},
|
||||||
"ledConfig": {
|
"ledConfig": {
|
||||||
"ledEnable": true,
|
"ledEnable": true,
|
||||||
|
"ledBrightness": 100,
|
||||||
"ledMode": 1,
|
"ledMode": 1,
|
||||||
"primary": {
|
"primary": {
|
||||||
"h": 255,
|
"h": 255,
|
||||||
"s": 255,
|
"s": 255,
|
||||||
"l": 100
|
"v": 100
|
||||||
},
|
},
|
||||||
"secondary": {
|
"secondary": {
|
||||||
"h": 255,
|
"h": 255,
|
||||||
"s": 255,
|
"s": 255,
|
||||||
"l": 100
|
"v": 100
|
||||||
},
|
},
|
||||||
"pointer": {
|
"pointer": {
|
||||||
"h": 255,
|
"h": 255,
|
||||||
"s": 255,
|
"s": 255,
|
||||||
"l": 10
|
"v": 10
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"guiConfig": {
|
"guiConfig": {
|
||||||
@@ -81,21 +82,22 @@
|
|||||||
},
|
},
|
||||||
"ledConfig": {
|
"ledConfig": {
|
||||||
"ledEnable": true,
|
"ledEnable": true,
|
||||||
|
"ledBrightness": 100,
|
||||||
"ledMode": 1,
|
"ledMode": 1,
|
||||||
"primary": {
|
"primary": {
|
||||||
"h": 255,
|
"h": 255,
|
||||||
"s": 255,
|
"s": 255,
|
||||||
"l": 100
|
"v": 100
|
||||||
},
|
},
|
||||||
"secondary": {
|
"secondary": {
|
||||||
"h": 255,
|
"h": 255,
|
||||||
"s": 255,
|
"s": 255,
|
||||||
"l": 100
|
"v": 100
|
||||||
},
|
},
|
||||||
"pointer": {
|
"pointer": {
|
||||||
"h": 255,
|
"h": 255,
|
||||||
"s": 255,
|
"s": 255,
|
||||||
"l": 10
|
"v": 10
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"guiConfig": {
|
"guiConfig": {
|
||||||
@@ -132,21 +134,22 @@
|
|||||||
},
|
},
|
||||||
"ledConfig": {
|
"ledConfig": {
|
||||||
"ledEnable": true,
|
"ledEnable": true,
|
||||||
|
"ledBrightness": 100,
|
||||||
"ledMode": 1,
|
"ledMode": 1,
|
||||||
"primary": {
|
"primary": {
|
||||||
"h": 255,
|
"h": 255,
|
||||||
"s": 255,
|
"s": 255,
|
||||||
"l": 100
|
"v": 100
|
||||||
},
|
},
|
||||||
"secondary": {
|
"secondary": {
|
||||||
"h": 255,
|
"h": 255,
|
||||||
"s": 255,
|
"s": 255,
|
||||||
"l": 100
|
"v": 100
|
||||||
},
|
},
|
||||||
"pointer": {
|
"pointer": {
|
||||||
"h": 255,
|
"h": 255,
|
||||||
"s": 255,
|
"s": 255,
|
||||||
"l": 10
|
"v": 10
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"guiConfig": {
|
"guiConfig": {
|
||||||
@@ -186,21 +189,22 @@
|
|||||||
},
|
},
|
||||||
"ledConfig": {
|
"ledConfig": {
|
||||||
"ledEnable": true,
|
"ledEnable": true,
|
||||||
|
"ledBrightness": 100,
|
||||||
"ledMode": 1,
|
"ledMode": 1,
|
||||||
"primary": {
|
"primary": {
|
||||||
"h": 100,
|
"h": 100,
|
||||||
"s": 100,
|
"s": 100,
|
||||||
"l": 100
|
"v": 100
|
||||||
},
|
},
|
||||||
"secondary": {
|
"secondary": {
|
||||||
"h": 120,
|
"h": 120,
|
||||||
"s": 120,
|
"s": 120,
|
||||||
"l": 120
|
"v": 120
|
||||||
},
|
},
|
||||||
"pointer": {
|
"pointer": {
|
||||||
"h": 255,
|
"h": 255,
|
||||||
"s": 255,
|
"s": 255,
|
||||||
"l": 255
|
"v": 255
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"guiConfig": {
|
"guiConfig": {
|
||||||
|
|||||||
@@ -30,7 +30,11 @@
|
|||||||
"description": "Flag to indicate whether to show the description"
|
"description": "Flag to indicate whether to show the description"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["profileDesc", "profileType", "showDesc"],
|
"required": [
|
||||||
|
"profileDesc",
|
||||||
|
"profileType",
|
||||||
|
"showDesc"
|
||||||
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"feedbackConfig": {
|
"feedbackConfig": {
|
||||||
@@ -73,7 +77,17 @@
|
|||||||
"description": "Secondary haptic volume"
|
"description": "Secondary haptic volume"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["feedbackEn", "feedbackType", "multiRev", "feedbackStrength", "endstopStrength", "outputRamp", "pos", "secondaryHaptic", "secondaryVol"],
|
"required": [
|
||||||
|
"feedbackEn",
|
||||||
|
"feedbackType",
|
||||||
|
"multiRev",
|
||||||
|
"feedbackStrength",
|
||||||
|
"endstopStrength",
|
||||||
|
"outputRamp",
|
||||||
|
"pos",
|
||||||
|
"secondaryHaptic",
|
||||||
|
"secondaryVol"
|
||||||
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"mappingConfig": {
|
"mappingConfig": {
|
||||||
@@ -104,7 +118,14 @@
|
|||||||
"description": "Mapping for switch D"
|
"description": "Mapping for switch D"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["internalMacro", "knobMap", "switchA", "switchB", "switchC", "switchD"],
|
"required": [
|
||||||
|
"internalMacro",
|
||||||
|
"knobMap",
|
||||||
|
"switchA",
|
||||||
|
"switchB",
|
||||||
|
"switchC",
|
||||||
|
"switchD"
|
||||||
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"ledConfig": {
|
"ledConfig": {
|
||||||
@@ -114,6 +135,10 @@
|
|||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Flag to enable LED"
|
"description": "Flag to enable LED"
|
||||||
},
|
},
|
||||||
|
"ledBrightness": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "LED brightness multiplier in percent"
|
||||||
|
},
|
||||||
"ledMode": {
|
"ledMode": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "LED mode"
|
"description": "LED mode"
|
||||||
@@ -121,35 +146,81 @@
|
|||||||
"primary": {
|
"primary": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"h": { "type": "integer", "description": "Hue value for primary LED" },
|
"h": {
|
||||||
"s": { "type": "integer", "description": "Saturation value for primary LED" },
|
"type": "integer",
|
||||||
"l": { "type": "integer", "description": "Lightness value for primary LED" }
|
"description": "Hue value for primary LED"
|
||||||
},
|
},
|
||||||
"required": ["h", "s", "l"],
|
"s": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Saturation value for primary LED"
|
||||||
|
},
|
||||||
|
"v": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Value value for primary LED"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"h",
|
||||||
|
"s",
|
||||||
|
"v"
|
||||||
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"secondary": {
|
"secondary": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"h": { "type": "integer", "description": "Hue value for secondary LED" },
|
"h": {
|
||||||
"s": { "type": "integer", "description": "Saturation value for secondary LED" },
|
"type": "integer",
|
||||||
"l": { "type": "integer", "description": "Lightness value for secondary LED" }
|
"description": "Hue value for secondary LED"
|
||||||
},
|
},
|
||||||
"required": ["h", "s", "l"],
|
"s": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Saturation value for secondary LED"
|
||||||
|
},
|
||||||
|
"v": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Value value for secondary LED"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"h",
|
||||||
|
"s",
|
||||||
|
"v"
|
||||||
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"pointer": {
|
"pointer": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"h": { "type": "integer", "description": "Hue value for pointer LED" },
|
"h": {
|
||||||
"s": { "type": "integer", "description": "Saturation value for pointer LED" },
|
"type": "integer",
|
||||||
"l": { "type": "integer", "description": "Lightness value for pointer LED" }
|
"description": "Hue value for pointer LED"
|
||||||
},
|
},
|
||||||
"required": ["h", "s", "l"],
|
"s": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Saturation value for pointer LED"
|
||||||
|
},
|
||||||
|
"v": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Value value for pointer LED"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"h",
|
||||||
|
"s",
|
||||||
|
"v"
|
||||||
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["ledEnable", "ledMode", "primary", "secondary", "pointer"],
|
"required": [
|
||||||
|
"ledEnable",
|
||||||
|
"ledBrightness",
|
||||||
|
"ledMode",
|
||||||
|
"primary",
|
||||||
|
"secondary",
|
||||||
|
"pointer"
|
||||||
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"guiConfig": {
|
"guiConfig": {
|
||||||
@@ -160,10 +231,21 @@
|
|||||||
"description": "Flag to enable GUI"
|
"description": "Flag to enable GUI"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["guiEnable"],
|
"required": [
|
||||||
|
"guiEnable"
|
||||||
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["id", "name", "profileTag", "profileConfig", "feedbackConfig", "mappingConfig", "ledConfig", "guiConfig"],
|
"required": [
|
||||||
|
"id",
|
||||||
|
"name",
|
||||||
|
"profileTag",
|
||||||
|
"profileConfig",
|
||||||
|
"feedbackConfig",
|
||||||
|
"mappingConfig",
|
||||||
|
"ledConfig",
|
||||||
|
"guiConfig"
|
||||||
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user