diff options
-rw-r--r-- | data/schemas/keyboard.jsonschema | 14 | ||||
-rw-r--r-- | lib/python/qmk/info.py | 3 |
2 files changed, 16 insertions, 1 deletions
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema index c335f49d5..177bb0a96 100644 --- a/data/schemas/keyboard.jsonschema +++ b/data/schemas/keyboard.jsonschema | |||
@@ -180,6 +180,10 @@ | |||
180 | "pattern": "^[A-K]\\d{1,2}$" | 180 | "pattern": "^[A-K]\\d{1,2}$" |
181 | }, | 181 | }, |
182 | { | 182 | { |
183 | "type": "string", | ||
184 | "pattern": "^LINE_PIN\\d{1,2}$" | ||
185 | }, | ||
186 | { | ||
183 | "type": "number", | 187 | "type": "number", |
184 | "multipleOf": 1 | 188 | "multipleOf": 1 |
185 | }, | 189 | }, |
@@ -199,6 +203,10 @@ | |||
199 | "pattern": "^[A-K]\\d{1,2}$" | 203 | "pattern": "^[A-K]\\d{1,2}$" |
200 | }, | 204 | }, |
201 | { | 205 | { |
206 | "type": "string", | ||
207 | "pattern": "^LINE_PIN\\d{1,2}$" | ||
208 | }, | ||
209 | { | ||
202 | "type": "number", | 210 | "type": "number", |
203 | "multipleOf": 1 | 211 | "multipleOf": 1 |
204 | }, | 212 | }, |
@@ -217,6 +225,10 @@ | |||
217 | "pattern": "^[A-K]\\d{1,2}$" | 225 | "pattern": "^[A-K]\\d{1,2}$" |
218 | }, | 226 | }, |
219 | { | 227 | { |
228 | "type": "string", | ||
229 | "pattern": "^LINE_PIN\\d{1,2}$" | ||
230 | }, | ||
231 | { | ||
220 | "type": "number", | 232 | "type": "number", |
221 | "multipleOf": 1 | 233 | "multipleOf": 1 |
222 | }, | 234 | }, |
@@ -261,7 +273,7 @@ | |||
261 | }, | 273 | }, |
262 | "pin": { | 274 | "pin": { |
263 | "type": "string", | 275 | "type": "string", |
264 | "pattern": "^[A-K]\\d{1,2}$" | 276 | "pattern": "^([A-K]\\d{1,2}|LINE_PIN\\d{1,2})$" |
265 | }, | 277 | }, |
266 | "saturation_steps": { | 278 | "saturation_steps": { |
267 | "type": "number", | 279 | "type": "number", |
diff --git a/lib/python/qmk/info.py b/lib/python/qmk/info.py index 47c8bff7a..b43cf4e41 100644 --- a/lib/python/qmk/info.py +++ b/lib/python/qmk/info.py | |||
@@ -146,6 +146,9 @@ def _pin_name(pin): | |||
146 | elif pin[0] in 'ABCDEFGHIJK' and pin[1].isdigit(): | 146 | elif pin[0] in 'ABCDEFGHIJK' and pin[1].isdigit(): |
147 | return pin | 147 | return pin |
148 | 148 | ||
149 | elif pin.startswith('LINE_PIN'): | ||
150 | return pin | ||
151 | |||
149 | raise ValueError(f'Invalid pin: {pin}') | 152 | raise ValueError(f'Invalid pin: {pin}') |
150 | 153 | ||
151 | 154 | ||