Commit 86674012 authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

wip

parent 6ad55b22
Pipeline #12185 passed with stage
in 1 second
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# usage: # usage:
# pcb.py | frep.py [dpi [filename]] # pcb.py | frep.py [dpi [filename]]
# #
# Neil Gershenfeld 7/22/21 # Neil Gershenfeld 8/24/21
# #
# This work may be reproduced, modified, distributed, # This work may be reproduced, modified, distributed,
# performed, and displayed for any purpose, but must # performed, and displayed for any purpose, but must
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
# uncomment for desired output # uncomment for desired output
############################################################ ############################################################
output = "top, labels, and exterior" #output = "top, labels, and exterior"
#output = "top, labels, holes, and exterior" output = "top, labels, holes, and exterior"
#output = "top, bottom, labels, and exterior" #output = "top, bottom, labels, and exterior"
#output = "top, bottom, labels, holes, and exterior" #output = "top, bottom, labels, holes, and exterior"
#output = "top traces" #output = "top traces"
...@@ -468,7 +468,7 @@ class text: ...@@ -468,7 +468,7 @@ class text:
# #
# text class # 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 # parameters
# #
...@@ -1889,7 +1889,7 @@ class header_SWD_4_1(part): ...@@ -1889,7 +1889,7 @@ class header_SWD_4_1(part):
# pin 1 # pin 1
# #
self.shape = translate(pad_header,-.107,.05,0) 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.pad.append(point(-.107,.05,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'CLK')) 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): ...@@ -1992,8 +1992,8 @@ class USB_A_plug(part):
# #
# plug cutout # plug cutout
# #
self.cutout = cube(-.05,1,.24,1,zb,zt) self.cutout = cube(-.05,1,.24,10,zb,zt)
self.cutout = add(self.cutout,cube(-.05,1,-1,-.24,zb,zt)) self.cutout = add(self.cutout,cube(-.05,10,-10,-.24,zb,zt))
class header_SWD(part): class header_SWD(part):
# #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment