Commit a50d3597 authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent 7b95c466
Pipeline #4759 passed with stage
in 2 seconds
......@@ -31,7 +31,7 @@ output = "top, labels, holes, and exterior"
#output = "bottom traces reversed and exterior"
#output = "holes"
#output = "interior"
#output = "holes and interior"
output = "holes and interior"
#output = "exterior"
#output = "solder mask"
......@@ -1176,6 +1176,42 @@ class choke(part):
# connectors
#
class header_SWD_4(part):
#
# 4-pin header
# fci 95278-101a04lf bergstik 2x2x0.1"
#
pad_header = cube(-.05,.05,-.025,.025,0,0)
def __init__(self,value=''):
self.value = value
self.pad = [point(0,0,0)]
self.labels = []
#
# pin 1
#
self.shape = translate(pad_header,-.107,.05,0)
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'))
#
# pin 2
#
self.shape = add(self.shape,translate(pad_header,.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,'DIO'))
#
# pin 3
#
self.shape = add(self.shape,translate(pad_header,-.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,'RST'))
#
# pin 4
#
self.shape = add(self.shape,translate(pad_header,.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,'GND'))
class header_UPDI(part):
#
# UPDI header
......
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