diff --git a/python/pcb.py b/python/pcb.py index 1f596a90932a73a7480fccc47a0d3fb0ad807373..bc62add19b6fcb1e78ff5c5ec7690aa842b879e6 100755 --- a/python/pcb.py +++ b/python/pcb.py @@ -6,7 +6,7 @@ # usage: # pcb.py | frep.py [dpi [filename]] # -# Neil Gershenfeld 7/22/21 +# Neil Gershenfeld 8/24/21 # # This work may be reproduced, modified, distributed, # performed, and displayed for any purpose, but must @@ -19,8 +19,8 @@ # uncomment for desired output ############################################################ -output = "top, labels, and exterior" -#output = "top, labels, holes, and exterior" +#output = "top, labels, and exterior" +output = "top, labels, holes, and exterior" #output = "top, bottom, labels, and exterior" #output = "top, bottom, labels, holes, and exterior" #output = "top traces" @@ -468,7 +468,7 @@ class text: # # text class # - def __init__(self,text,x,y,z,line='',height='',width='',space='',align='CC',color=White,angle=0): + def __init__(self,text,x,y,z=0,line='',height='',width='',space='',align='CC',color=White,angle=0): # # parameters # @@ -1889,7 +1889,7 @@ class header_SWD_4_1(part): # pin 1 # self.shape = translate(pad_header,-.107,.05,0) - self.shape = add(self.shape,cylinder(-.157,.05,0,0,.025)) + #self.shape = add(self.shape,cylinder(-.157,.05,0,0,.025)) self.pad.append(point(-.107,.05,0)) self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'CLK')) # @@ -1992,8 +1992,8 @@ class USB_A_plug(part): # # plug cutout # - self.cutout = cube(-.05,1,.24,1,zb,zt) - self.cutout = add(self.cutout,cube(-.05,1,-1,-.24,zb,zt)) + self.cutout = cube(-.05,1,.24,10,zb,zt) + self.cutout = add(self.cutout,cube(-.05,10,-10,-.24,zb,zt)) class header_SWD(part): #