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

wip

parent fede528a
Pipeline #19660 passed with stage
in 1 second
......@@ -19,17 +19,17 @@
# 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 = "bottom traces"
#output = "bottom traces reversed"
#output = "bottom traces reversed and exterior"
#output = "holes"
#output = "interior"
output = "interior"
#output = "holes and interior"
#output = "exterior"
#output = "solder mask"
......@@ -1227,6 +1227,52 @@ class choke(part):
# connectors
############################################################
class header_IMU_2472(part):
#
# Adafruit 2472 BNO055 IMU breakout
#
def __init__(self,value=''):
pad_header = cylinder(0,0,0,0,.03)
self.value = value
self.pad = [point(0,0,0)]
self.labels = []
#
# pin 1
#
self.shape = translate(pad_header,0,.25,0)
self.pad.append(point(0,.25,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'Vin'))
#
# pin 2
#
self.shape = add(self.shape,translate(pad_header,0,.15,0))
self.pad.append(point(0,.15,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'3.3'))
#
# pin 3
#
self.shape = add(self.shape,translate(pad_header,0,.05,0))
self.pad.append(point(0,.05,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'GND'))
#
# pin 4
#
self.shape = add(self.shape,translate(pad_header,0,-0.05,0))
self.pad.append(point(0,-0.05,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'SDA'))
#
# pin 5
#
self.shape = add(self.shape,translate(pad_header,0,-0.15,0))
self.pad.append(point(0,-0.15,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'SCL'))
#
# pin 6
#
self.shape = add(self.shape,translate(pad_header,0,-0.25,0))
self.pad.append(point(0,-0.25,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'RST'))
class micro_USB(part):
#
# micro USB
......@@ -1321,58 +1367,6 @@ class header_IMU_2738(part):
self.pad.append(point(0,-0.2,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'VDD'))
class USB_micro(part):
#
# micro USB
# AMP/FCI 10118194-0001LF
#
def __init__(self,value=''):
w = 0.0049 # pad half width
h = .55/25.4/2 # pad half height
p = .65/25.4 # pad pitch
l = 0.006 # text
pad_header = cube(-w,w,-h,h,0,0)
self.value = value
self.pad = [point(0,0,0)]
self.labels = []
#
# pin 1
#
self.shape = translate(pad_header,-2*p,0,0)
self.pad.append(point(-2*p,0,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'V',line=l))
#
# pin 2
#
self.shape = add(self.shape,translate(pad_header,-p,0,0))
self.pad.append(point(-p,0,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'-',line=l))
#
# pin 3
#
self.shape = add(self.shape,translate(pad_header,0,0,0))
self.pad.append(point(0,0,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'+',line=l))
#
# pin 4
#
self.shape = add(self.shape,translate(pad_header,p,0,0))
self.pad.append(point(p,0,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'I',line=l))
#
# pin 5
#
self.shape = add(self.shape,translate(pad_header,2*p,0,0))
self.pad.append(point(2*p,0,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'G',line=l))
#
# holes
#
self.holes = cylinder(2.5/25.4,0,zb,zt,0.016)
self.holes = add(self.holes,cylinder(-2.5/25.4,0,zb,zt,0.016))
self.holes = add(self.holes,cylinder(-3.5/25.4,-2.7/25.4,zb,zt,.9/25.4/2))
self.holes = add(self.holes,cylinder(3.5/25.4,-2.7/25.4,zb,zt,.9/25.4/2))
class header_serial_M(part):
#
# 4x1x0.1 serial cable header
......
Supports Markdown
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