Commit 18393c42 authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent eb1efa0e
Pipeline #4718 passed with stage
in 1 second
......@@ -20,11 +20,13 @@
# uncomment for desired output:
#
#output = "top, labels, 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, bottom, labels, holes, and exterior"
#output = "top traces"
#output = "top traces and exterior"
#output = "top traces, holes, and exterior"
#output = "bottom traces reversed"
#output = "bottom traces reversed and exterior"
#output = "holes"
......@@ -1078,6 +1080,21 @@ class via(part):
self.pad.append(point(0,0,zt))
self.pad.append(point(0,0,zb))
class SJ(part):
#
# solder jumper
#
def __init__(self,value=''):
pad_SJ = cube(-.02,.02,-.03,.03,0,0)
self.value = value
self.labels = []
self.pad = [point(0,0,0)]
self.shape = translate(pad_SJ,-.029,0,0)
self.pad.append(point(-.029,0,0))
self.shape = add(self.shape,translate(pad_SJ,.029,0,0))
self.pad.append(point(.029,0,0))
#
# discretes
#
......@@ -1097,21 +1114,6 @@ class R_0402(part):
self.shape = add(self.shape,translate(pad_0402,.0265,0,0))
self.pad.append(point(.0265,0,0))
pad_SJ = cube(-.02,.02,-.03,.03,0,0)
class SJ(part):
#
# solder jumper
#
def __init__(self,value=''):
self.value = value
self.labels = []
self.pad = [point(0,0,0)]
self.shape = translate(pad_SJ,-.029,0,0)
self.pad.append(point(-.029,0,0))
self.shape = add(self.shape,translate(pad_SJ,.029,0,0))
self.pad.append(point(.029,0,0))
pad_1206 = cube(-.032,.032,-.034,.034,0,0)
class R_1206(part):
......@@ -5915,6 +5917,10 @@ if (output == "top, labels, and exterior"):
outputs["function"] = add(add(color(Tan,pcb.board),pcb.labels),
color(White,pcb.exterior))
outputs["layers"] = [zt]
elif (output == "top, labels, holes, and exterior"):
outputs["function"] = add(add(color(Tan,pcb.board),pcb.labels),
color(White,add(pcb.exterior,pcb.holes)))
outputs["layers"] = [zt]
elif (output == "top, bottom, labels, and exterior"):
outputs["function"] = add(add(color(Tan,pcb.board),pcb.labels),
color(White,pcb.exterior))
......@@ -5930,6 +5936,10 @@ elif (output == "top traces"):
elif (output == "top traces and exterior"):
outputs["function"] = color(White,add(pcb.board,pcb.exterior))
outputs["layers"] = [zt]
elif (output == "top traces, holes, and exterior"):
outputs["function"] = color(White,
add(add(pcb.board,pcb.exterior),pcb.holes))
outputs["layers"] = [zt]
elif (output == "bottom traces reversed"):
outputs["function"] = color(White,
reflect_x(pcb.board,2*x+width))
......
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