Commit 89551379 authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent 57f1cd32
Pipeline #4770 passed with stage
in 1 second
...@@ -1190,56 +1190,9 @@ class choke(part): ...@@ -1190,56 +1190,9 @@ class choke(part):
# connectors # connectors
# #
class header_serial_reverse_5V(part): class header_serial_reverse(part):
#
# serial cable header, reverse for female connector, 5V output
# GCT BG300-06-A-L-A
#
def __init__(self,value=''):
self.value = value
self.pad = [point(0,0,0)]
self.labels = []
#
# pin 1
#
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
#
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
#
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,'5V'))
#
# pin 4
#
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
#
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
#
self.shape = add(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,'RTS'))
class header_serial_reverse_3V3(part):
# #
# serial cable header, reverse for female connector, 3.3V output # serial cable header, reverse for female connector
# GCT BG300-06-A-L-A # GCT BG300-06-A-L-A
# #
def __init__(self,value=''): def __init__(self,value=''):
...@@ -1264,7 +1217,7 @@ class header_serial_reverse_3V3(part): ...@@ -1264,7 +1217,7 @@ class header_serial_reverse_3V3(part):
# #
self.shape = add(self.shape,translate(pad_header,0,-.05,0)) self.shape = add(self.shape,translate(pad_header,0,-.05,0))
self.pad.append(point(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
# #
......
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