Commit 444fc7ef authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent 3e95e8d2
Pipeline #4761 passed with stage
in 1 second
......@@ -1568,7 +1568,7 @@ class microSD(part):
#
self.shape = add(self.shape,translate(cube(-.0138,.0138,-.034,.034,0,0),-.177+6*.0433,-.304,0))
self.pad.append(point(-.177+6*.0433,-.304,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'/CS',angle=90))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'SS',angle=90))
#
# pin 3
#
......@@ -1580,13 +1580,13 @@ class microSD(part):
#
self.shape = add(self.shape,translate(cube(-.0138,.0138,-.034,.034,0,0),-.177+4*.0433,-.304,0))
self.pad.append(point(-.177+4*.0433,-.304,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'V',angle=90))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'VCC',angle=90))
#
# pin 5
#
self.shape = add(self.shape,translate(cube(-.0138,.0138,-.034,.034,0,0),-.177+3*.0433,-.304,0))
self.pad.append(point(-.177+3*.0433,-.304,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'CLK',angle=90))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'SCK',angle=90))
#
# pin 6
#
......@@ -2359,9 +2359,9 @@ class header_LCD(part):
self.pad.append(point(-.107,.2,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'GND\n1'))
class header_serial_reverse_3V3(part):
class header_serial_reverse(part):
#
# serial cable header, reverse for female connector, 3.3V
# serial cable header, reverse for female connector
# GCT BG300-06-A-L-A
#
def __init__(self,value=''):
......@@ -2369,38 +2369,38 @@ class header_serial_reverse_3V3(part):
self.pad = [point(0,0,0)]
self.labels = []
#
# pin 1
# 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,'GND'))
#
# pin 2
# pin 2: CTS (brown)
#
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,'CTS'))
#
# pin 3
# pin 3: VCC (red)
#
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,'3.3V'))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'VCC'))
#
# pin 4
# pin 4: Tx (orange)
#
self.shape = add(self.shape,translate(pad_header,0,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,'Tx'))
#
# pin 5
# pin 5: Rx (yellow)
#
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,'Rx'))
#
# pin 6
# pin 6: RTS (green)
#
self.shape = add(self.shape,translate(pad_header,0,.25,0))
self.pad.append(point(0,.25,0))
......
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