Commit 64437fc3 authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent c2772027
Pipeline #4725 passed with stage
in 1 second
......@@ -1176,6 +1176,52 @@ class choke(part):
# connectors
#
class header_UPDI(part):
#
# UPDI header
# Sullins GEC36SBSN-M89
#
def __init__(self,value=''):
self.value = value
self.pad = [point(0,0,0)]
self.labels = []
#
# pin 1: UPDI
#
self.shape = translate(pad_header,0,-.05,0)
self.shape = add(self.shape,cylinder(.05,-.05,0,0,.025))
self.pad.append(point(0,-.05,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'UPDI'))
#
# pin 2: GND
#
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'))
class header_UPDI_reverse(part):
#
# UPDI header, reverse for female connector
# GCT BG300-03-A-L-A
#
def __init__(self,value=''):
self.value = value
self.pad = [point(0,0,0)]
self.labels = []
#
# pin 1: UPDI
#
self.shape = translate(pad_header,0,.05,0)
self.shape = add(self.shape,cylinder(.05,.05,0,0,.025))
self.pad.append(point(0,.05,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'UPDI'))
#
# pin 2: GND
#
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'))
class USB_A_plug(part):
#
# USB type A PCB plug
......@@ -2245,18 +2291,19 @@ class header_LCD(part):
class header_FTDI(part):
#
# FTDI cable header
# Sullins GEC36SBSN-M89
#
def __init__(self,value=''):
self.value = value
self.pad = [point(0,0,0)]
self.labels = []
#
# pin 1: GND (black)
# pin 1: GND
#
self.shape = translate(pad_header,0,.25,0)
self.shape = add(self.shape,cylinder(-.05,.25,0,0,.025))
self.pad.append(point(0,.25,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'G (blk)'))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'GND'))
#
# pin 2: CTS (brown)
#
......@@ -4467,6 +4514,66 @@ class ADXL343(part):
#
# ICs
#
class ATtiny412(part):
def __init__(self,value=''):
self.value = value
self.pad = [point(0,0,0)]
self.labels = []
d = 0.11
w = 0.015
h = .03
pad = cube(-h,h,-w,w,0,0)
#
# pin 1: VCC
#
self.shape = translate(pad,-d,.075,0)
self.shape = add(self.shape,cylinder(-d-h,.075,0,0,w))
self.pad.append(point(-d,.075,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'VCC'))
#
# pin 2: PA6
#
self.shape = add(self.shape,translate(pad,-d,.025,0))
self.pad.append(point(-d,.025,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'PA6'))
#
# pin 3: PA7
#
self.shape = add(self.shape,translate(pad,-d,-.025,0))
self.pad.append(point(-d,-.025,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'PA7'))
#
# pin 4: PA1
#
self.shape = add(self.shape,translate(pad,-d,-.075,0))
self.pad.append(point(-d,-.075,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'PA1'))
#
# pin 5: PA2
#
self.shape = add(self.shape,translate(pad,d,-.075,0))
self.pad.append(point(d,-.075,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'PA2'))
#
# pin 6: UPDI
#
self.shape = add(self.shape,translate(pad,d,-.025,0))
self.pad.append(point(d,-.025,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'UPDI'))
#
# pin 7: PA3
#
self.shape = add(self.shape,translate(pad,d,.025,0))
self.pad.append(point(d,.025,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'PA3'))
#
# pin 8: GND
#
self.shape = add(self.shape,translate(pad,d,.075,0))
self.pad.append(point(d,.075,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'GND'))
class SAMD11C_SOIC(part):
def __init__(self,value=''):
......@@ -4545,11 +4652,11 @@ class SAMD11C_SOIC(part):
self.pad.append(point(d,0,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'GND'))
#
# pin 12: VCC
# pin 12: VDD
#
self.shape = add(self.shape,translate(pad,d,.050,0))
self.pad.append(point(d,.05,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'VCC'))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'VDD'))
#
# pin 13: PA02
#
......
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