def top_smd_fab(pins):
    out = []
    w = fab_width

    # Outline
    _, _, _, _, sq = draw_square(2*pins+4, 5.7, (0, 3.35), "F.Fab", w)
    out += sq

    # Pins
    x = pins - 1
    for pin in range(pins):
        _, _, _, _, sq = draw_square(0.5, 2.5, (x, -0), "F.Fab", w)
        out += sq
        x -= 2

    return out
dataset/ETHPy150Open adamgreig/agg-kicad/scripts/build_mod_jstpa.py/top_smd_fab/original