import re

with open("boardloaf-he/boardloafhe.kicad_pcb", "r") as f:
    pcb = f.read()

footprints = {}
current_fp = None

for line in pcb.split("\n"):
    fp_match = re.search(r'^\s*\(footprint\s+"[^"]+"\s+', line)
    if fp_match:
        pass  # need to track blocks, maybe simpler to just use regex

# simpler approach: find all lines with reference
# Actually let's just grep the pads for SW1.
