Files
rich b1b2171852 Initial import: SB-LoRa v0.1 hardware, MeshCore UART patch, design docs
Organize the planning-session outputs into hardware/, firmware/,
palm-client/ and docs/, with design notes and a progress tracker.
2026-10-30 13:33:31 -04:00

8 lines
329 B
Python

#!/usr/bin/python3
import sys, pcbnew, re, collections
b = pcbnew.LoadBoard(sys.argv[1])
ok = pcbnew.WriteDRCReport(b, sys.argv[2], pcbnew.EDA_UNITS_MILLIMETRES, True)
txt = open(sys.argv[2]).read()
print(ok, re.findall(r"\*\* Found \d+ [^*]+", txt))
c = collections.Counter(re.findall(r"^\[(\w+)\]", txt, re.M)); print(dict(c))