diff --git a/python/pcb.py b/python/pcb.py index 006597ddae9dbd8fbdc3ffa64f86259977ea1efe..614273f8a0e4cd5a3dfbaf62e277e48d751790cf 100755 --- a/python/pcb.py +++ b/python/pcb.py @@ -1227,6 +1227,23 @@ class choke(part): # connectors ############################################################ +class hole_pad(part): + # + # wire solder hole pad + # + def __init__(self,value,zb,zt): + pad_header = cylinder(0,0,zb,zt,.03) + pad_hole = cylinder(0,0,zb,zt,.018) + self.value = value + self.pad = [point(0,0,0)] + self.labels = [] + # + # pin 1 + # + self.shape = translate(pad_header,0,0,0) + self.holes = translate(pad_hole,0,0,0) + self.pad.append(point(0,0,0)) + class header_I2C_hole(part): # # I2C through-hole