diff --git a/python/pcb.py b/python/pcb.py index 77af2ebc4af964f0cd7ade8d1ec697e90000a1ac..cbe15b6d8df2313dc64eaefdcc043a3291965193 100755 --- a/python/pcb.py +++ b/python/pcb.py @@ -1258,6 +1258,33 @@ class choke(part): # connectors ############################################################ +class SMD_wire_entry(part): + # + # SMD wire entry + # Metz Connect SM99S01VBNN05G7 + # + def __init__(self,value=''): + pad1 = cube(-.169/2,.169/2,-.079/2,.079/2,0,0) + l1 = .169 + pad2 = cube(-.228/2,.228/2,-.079/2,.079/2,0,0) + l2 = .228 + gap = .106 + self.value = value + self.pad = [point(0,0,0)] + self.labels = [] + # + # pin 1 + # + self.shape = translate(pad1,-gap/2-l1/2,0,0) + self.pad.append(point(-gap/2-l1/2,0,0)) + self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'1')) + # + # pin 2 + # + self.shape = add(self.shape,translate(pad2,gap/2+l2/2,0,0)) + self.pad.append(point(gap/2+l2/2,0,0)) + self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'2')) + class hole_pad(part): # # wire solder hole pad