Skip to content

Commit

Permalink
allow LINE_PINxx for Teensy 4.x pins (qmk#13247)
Browse files Browse the repository at this point in the history
fixes qmk#13052
  • Loading branch information
stapelberg authored Jun 19, 2021
1 parent 85e7b46 commit b3350c4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 13 additions & 1 deletion data/schemas/keyboard.jsonschema
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@
"type": "string",
"pattern": "^[A-K]\\d{1,2}$"
},
{
"type": "string",
"pattern": "^LINE_PIN\\d{1,2}$"
},
{
"type": "number",
"multipleOf": 1
Expand All @@ -198,6 +202,10 @@
"type": "string",
"pattern": "^[A-K]\\d{1,2}$"
},
{
"type": "string",
"pattern": "^LINE_PIN\\d{1,2}$"
},
{
"type": "number",
"multipleOf": 1
Expand All @@ -216,6 +224,10 @@
"type": "string",
"pattern": "^[A-K]\\d{1,2}$"
},
{
"type": "string",
"pattern": "^LINE_PIN\\d{1,2}$"
},
{
"type": "number",
"multipleOf": 1
Expand Down Expand Up @@ -261,7 +273,7 @@
},
"pin": {
"type": "string",
"pattern": "^[A-K]\\d{1,2}$"
"pattern": "^([A-K]\\d{1,2}|LINE_PIN\\d{1,2})$"
},
"saturation_steps": {
"type": "number",
Expand Down
3 changes: 3 additions & 0 deletions lib/python/qmk/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ def _pin_name(pin):
elif pin[0] in 'ABCDEFGHIJK' and pin[1].isdigit():
return pin

elif pin.startswith('LINE_PIN'):
return pin

raise ValueError(f'Invalid pin: {pin}')


Expand Down

0 comments on commit b3350c4

Please sign in to comment.