Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
libraries
Commits
444fc7ef
Commit
444fc7ef
authored
Dec 31, 2019
by
Neil Gershenfeld
Browse files
wip
parent
3e95e8d2
Pipeline
#4761
passed with stage
in 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/pcb.py
View file @
444fc7ef
...
...
@@ -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
,
'
/C
S'
,
angle
=
90
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'
S
S'
,
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
,
'V
CC
'
,
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
,
'C
L
K'
,
angle
=
90
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'
S
CK'
,
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
\n
1'
))
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
))
...
...
Write
Preview
Supports
Markdown
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