Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libraries
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pub
libraries
Commits
89551379
Commit
89551379
authored
Jan 05, 2020
by
Neil Gershenfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
57f1cd32
Pipeline
#4770
passed with stage
in 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
50 deletions
+3
-50
python/pcb.py
python/pcb.py
+3
-50
No files found.
python/pcb.py
View file @
89551379
...
...
@@ -1190,56 +1190,9 @@ class choke(part):
# connectors
#
class
header_serial_reverse_5V
(
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
):
class
header_serial_reverse
(
part
):
#
# serial cable header, reverse for female connector
, 3.3V output
# serial cable header, reverse for female connector
# GCT BG300-06-A-L-A
#
def
__init__
(
self
,
value
=
''
):
...
...
@@ -1264,7 +1217,7 @@ class header_serial_reverse_3V3(part):
#
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
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment