This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Extracts QMK `info.json` layout data from kicad pcb | |
| # You need to have the `pcbnew` module importable (should be installed when kicad is installed) | |
| import re, pcbnew, json | |
| from typing import Callable | |
| from functools import reduce | |
| kicad7 = pcbnew.Version().startswith("7") | |
| if kicad7: |