kicad2ems.pcbqs.circuit.boards

The example circuits' boards: a KiCad layout for each, written from a short
description.

    python -m kicad2ems.pcbqs.circuit.boards  # write every example's .kicad_pcb
                                              # beside its model, and check each
    python -m kicad2ems.pcbqs.circuit.boards --picture boards.png

A layout here is what a power board is: an island of copper for each net on the
top layer, a ground strip stitched to a ground plane on the bottom, and each
part across the gap between the islands of its two nets. So a description is the
islands (rectangles, mm) and the package of each part; where a part goes follows
from the islands its nets have (`place`), a transformer or anything else unusual
is put down by hand (`part`).

    b = Board('06_boost', 44, 24)
    b.row(['in', 'sw', 'out'], [15, 9, 16])  # three islands in a row over the
                                             # ground strip
    b.place(model, packages={'V1': 'J_PADS', 'L1': 'L_7x7', ...},
            names={'V1': 'J1', 'R1': 'J2'})
    b.check(); b.write(folder)

check() is the generator's own: every pad on copper of its net, every net's
copper in one piece (through its vias and the plane), no two nets closer than
the clearance. tests/test_circuit_boards.py checks the written files again, as
kicad2ems reads them.
kicad2ems.pcbqs.circuit.boards.label(part)[source]
A part's value as its footprint's Value: '22u', '5R', the way a schematic
writes it.
kicad2ems.pcbqs.circuit.boards.layouts()[source]
{example: (Board, {model ref: board ref})} for every example circuit,
placed and checked.
kicad2ems.pcbqs.circuit.boards.package_of(part)[source]
The package a part gets when none is named: by its type and its size.
kicad2ems.pcbqs.circuit.boards.picture(path, columns=2)[source]
Every example's layout in one picture: the islands by net, the ground
plane under them, pads and vias.
kicad2ems.pcbqs.circuit.boards.uid()[source]
A KiCad item's uuid: the same every time a board is written, so a board
file only changes when its layout does.