Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
libraries
Commits
e3ef8cc5
Commit
e3ef8cc5
authored
Apr 20, 2019
by
Neil Gershenfeld
Browse files
wip
parent
fd04cc7c
Pipeline
#3354
passed with stage
in 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/pcb.py
View file @
e3ef8cc5
...
...
@@ -1735,6 +1735,64 @@ class header_ISP(part):
self
.
pad
.
append
(
point
(
-
.
107
,.
1
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'GND'
))
class
header_nRF24L01
(
part
):
#
# nRF24L01 module header
#
def
__init__
(
self
,
value
=
''
):
self
.
value
=
value
self
.
pad
=
[
point
(
0
,
0
,
0
)]
self
.
labels
=
[]
#
# pin 1:
#
self
.
shape
=
translate
(
pad_header
,.
107
,
-
.
15
,
0
)
self
.
shape
=
add
(
self
.
shape
,
cylinder
(.
157
,
-
.
15
,
0
,
0
,.
025
))
self
.
pad
.
append
(
point
(.
107
,
-
.
15
,
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
,
-
.
107
,
-
.
15
,
0
))
self
.
pad
.
append
(
point
(
-
.
107
,
-
.
15
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'VCC'
))
#
# pin 3:
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad_header
,.
107
,
-
.
05
,
0
))
self
.
pad
.
append
(
point
(.
107
,
-
.
05
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'CE'
))
#
# pin 4:
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad_header
,
-
.
107
,
-
.
05
,
0
))
self
.
pad
.
append
(
point
(
-
.
107
,
-
.
05
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'CS'
))
#
# pin 5:
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad_header
,.
107
,.
05
,
0
))
self
.
pad
.
append
(
point
(.
107
,.
05
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'SCK'
))
#
# pin 6:
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad_header
,
-
.
107
,.
05
,
0
))
self
.
pad
.
append
(
point
(
-
.
107
,.
05
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'MOSI'
))
#
# pin 7:
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad_header
,.
107
,.
15
,
0
))
self
.
pad
.
append
(
point
(.
107
,.
15
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'MISO'
))
#
# pin 8:
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad_header
,
-
.
107
,.
15
,
0
))
self
.
pad
.
append
(
point
(
-
.
107
,.
15
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'IRQ'
))
class
header_servo
(
part
):
#
# servo motor header
...
...
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