#create even numbered pads createNumberedPadsTHT(kicad_mod, floor(pincount / 2), pitch * 2, drill, { 'x': dia, 'y': dia }, starting=2, increment=2, y_off=y_spacing, x_off=pitch) #add mounting hole (only for the -1D option which has the boss) if boss: kicad_mod.addMountingHole({'x': -1.65, 'y': -3.8}, 1.1) #draw the courtyard cy = 0.5 kicad_mod.addRectLine({ 'x': x1 - 0.5, 'y': y1 - 0.5 }, { 'x': x2 + 0.5, 'y': y2 + 0.5 }, "F.CrtYd", 0.05) kicad_mod.addRectLine({'x': x1, 'y': y1}, {'x': x2, 'y': y2}) #draw the line at the top
dia = 1.3 drill = 0.7 y_spacing = -2.0 # create odd numbered pads createNumberedPadsTHT(kicad_mod, ceil(pincount/2), pitch * 2, drill, {'x':dia, 'y':dia}, increment=2) #create even numbered pads createNumberedPadsTHT(kicad_mod, floor(pincount/2), pitch * 2, drill, {'x':dia, 'y':dia}, starting=2, increment=2, y_off=y_spacing, x_off=pitch) #add mounting hole (only for the -1D option which has the boss) if boss: kicad_mod.addMountingHole( {'x': -1.65, 'y': -3.8}, 1.1 ) #draw the courtyard cy=0.5 kicad_mod.addRectLine( {'x':x1-0.5,'y':y1-0.5}, {'x':x2+0.5,'y':y2+0.5}, "F.CrtYd", 0.05) kicad_mod.addRectLine({'x':x1,'y':y1}, {'x':x2,'y':y2}) #draw the line at the top #thicknes t of sidewalls
increment=2) #create even numbered pads createNumberedPadsTHT(kicad_mod, floor(pincount / 2), pitch * 2, drill, { 'x': dia, 'y': dia }, starting=2, increment=2, y_off=y_spacing, x_off=pitch) #add mounting holes kicad_mod.addMountingHole({'x': -1.55, 'y': 1.85}, 1.1) kicad_mod.addMountingHole({'x': A + 1.55, 'y': 1.85}, 1.1) #draw the courtyard cy = 0.5 kicad_mod.addRectLine({ 'x': x1 - 0.5, 'y': y1 - 0.5 }, { 'x': x2 + 0.5, 'y': y2 + 0.5 }, "F.CrtYd", 0.05) kicad_mod.addRectLine({'x': x1, 'y': y1}, {'x': x2, 'y': y2})
kicad_mod.addText('value', footprint_name, {'x':xMid, 'y':9}, 'F.Fab') dia = 1.35 drill = 0.7 y_spacing = 3.70 # create odd numbered pads createNumberedPadsTHT(kicad_mod, ceil(pincount/2), pitch * 2, drill, {'x':dia, 'y':dia}, increment=2) #create even numbered pads createNumberedPadsTHT(kicad_mod, floor(pincount/2), pitch * 2, drill, {'x':dia, 'y':dia}, starting=2, increment=2, y_off=y_spacing, x_off=pitch) #add mounting holes kicad_mod.addMountingHole( {'x': -1.55, 'y': 1.85}, 1.1 ) kicad_mod.addMountingHole( {'x': A+1.55 , 'y': 1.85}, 1.1 ) #draw the courtyard cy=0.5 kicad_mod.addRectLine( {'x':x1-0.5,'y':y1-0.5}, {'x':x2+0.5,'y':y2+0.5}, "F.CrtYd", 0.05) kicad_mod.addRectLine({'x':x1,'y':y1},