Initial potentiometer support

This commit is contained in:
zvecr
2023-12-13 03:19:33 +00:00
parent e2472ee8f1
commit 929da00c2f
21 changed files with 251 additions and 37 deletions
+3
View File
@@ -117,6 +117,9 @@
"ONESHOT_TIMEOUT": {"info_key": "oneshot.timeout", "value_type": "int"},
"ONESHOT_TAP_TOGGLE": {"info_key": "oneshot.tap_toggle", "value_type": "int"},
// Potentiometer
"POTENTIOMETER_PINS": {"info_key": "potentiometer.pins", "value_type": "array"},
// PS/2
"PS2_CLOCK_PIN": {"info_key": "ps2.clock_pin"},
"PS2_DATA_PIN": {"info_key": "ps2.data_pin"},
+1
View File
@@ -32,6 +32,7 @@
"NO_USB_STARTUP_CHECK": {"info_key": "usb.no_startup_check", "value_type": "bool"},
"PIN_COMPATIBLE": {"info_key": "pin_compatible"},
"PLATFORM_KEY": {"info_key": "platform_key", "to_json": false},
"POTENTIOMETER_ENABLE": {"info_key": "potentiometer.enabled", "value_type": "bool"},
"PS2_DRIVER": {"info_key": "ps2.driver"},
"PS2_ENABLE": {"info_key": "ps2.enabled", "value_type": "bool"},
"PS2_MOUSE_ENABLE": {"info_key": "ps2.mouse_enabled", "value_type": "bool"},
+7
View File
@@ -418,6 +418,13 @@
"timeout": {"$ref": "qmk.definitions.v1#/unsigned_int"}
}
},
"potentiometer": {
"type": "object",
"properties": {
"enabled": {"type": "boolean"},
"pins": {"$ref": "qmk.definitions.v1#/mcu_pin_array"}
}
},
"led_matrix": {
"type": "object",
"properties": {