allow LINE_PINxx for Teensy 4.x pins (#13247)
fixes https://github.com/qmk/qmk_firmware/issues/13052
This commit is contained in:
parent
8dc036c2e4
commit
7c5ef4060e
2 changed files with 16 additions and 1 deletions
|
@ -179,6 +179,10 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^[A-K]\\d{1,2}$"
|
"pattern": "^[A-K]\\d{1,2}$"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^LINE_PIN\\d{1,2}$"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"multipleOf": 1
|
"multipleOf": 1
|
||||||
|
@ -198,6 +202,10 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^[A-K]\\d{1,2}$"
|
"pattern": "^[A-K]\\d{1,2}$"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^LINE_PIN\\d{1,2}$"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"multipleOf": 1
|
"multipleOf": 1
|
||||||
|
@ -216,6 +224,10 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^[A-K]\\d{1,2}$"
|
"pattern": "^[A-K]\\d{1,2}$"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^LINE_PIN\\d{1,2}$"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"multipleOf": 1
|
"multipleOf": 1
|
||||||
|
@ -261,7 +273,7 @@
|
||||||
},
|
},
|
||||||
"pin": {
|
"pin": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^[A-K]\\d{1,2}$"
|
"pattern": "^([A-K]\\d{1,2}|LINE_PIN\\d{1,2})$"
|
||||||
},
|
},
|
||||||
"saturation_steps": {
|
"saturation_steps": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
|
|
|
@ -146,6 +146,9 @@ def _pin_name(pin):
|
||||||
elif pin[0] in 'ABCDEFGHIJK' and pin[1].isdigit():
|
elif pin[0] in 'ABCDEFGHIJK' and pin[1].isdigit():
|
||||||
return pin
|
return pin
|
||||||
|
|
||||||
|
elif pin.startswith('LINE_PIN'):
|
||||||
|
return pin
|
||||||
|
|
||||||
raise ValueError(f'Invalid pin: {pin}')
|
raise ValueError(f'Invalid pin: {pin}')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue