From 86674012cf4993bd155545df7df9c5510540b8eb Mon Sep 17 00:00:00 2001 From: Neil Gershenfeld <gersh@cba.mit.edu> Date: Tue, 24 Aug 2021 09:28:19 -0400 Subject: [PATCH] wip --- python/pcb.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/python/pcb.py b/python/pcb.py index 1f596a9..bc62add 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): # -- GitLab