Add mesh direction indicator to footprints

This commit is contained in:
jaseg 2023-10-06 14:01:21 +02:00
parent f439d10280
commit 3d84cb4822
2 changed files with 19 additions and 0 deletions

View file

@ -44,6 +44,25 @@ def generate_footprints(output_dir, trace_width, clearance, conductors):
layer='F.Cu',
fill=footprints.Atom.solid)
for i in range(2*conductors)],
lines=[footprints.Line(footprints.XYCoord(pitch/2 + trace/2 + 0.25 + x1, y1),
footprints.XYCoord(pitch/2 + trace/2 + 0.25 + x2, y2),
'F.Fab',
stroke=footprints.Stroke(width=0.25))
for x1, y1, x2, y2 in [
(0, pitch * (conductors - 0.5) + trace/2 - 0.25/2,
0, pitch * (-conductors + 0.5) - trace/2 + 0.25/2),
(0, 0, conductors * pitch, 0),
(conductors * pitch, 0, conductors * pitch/2, conductors * pitch/2),
(conductors * pitch, 0, conductors * pitch/2, -conductors * pitch/2),
]],
texts=[
footprints.Text(
text='Mesh',
at=footprints.AtPos(pitch/2 + trace/2 + 0.25 + conductors * pitch + 0.5, 0),
layer='F.Fab',
effects=footprints.TextEffect(justify=footprints.Justify(h=footprints.Atom.left))
)
],
pads=[
footprints.Pad(
number=f'{i+1}',

Binary file not shown.