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
63e7f52b
Commit
63e7f52b
authored
Nov 01, 2021
by
Neil Gershenfeld
Browse files
wip
parent
45960ef2
Pipeline
#16829
passed with stage
in 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/pcb.py
View file @
63e7f52b
...
...
@@ -1226,6 +1226,46 @@ class choke(part):
# connectors
############################################################
class
header_IMU_2738
(
part
):
#
# Pololu 2736 MinIMU-9 v5 IMU
#
def
__init__
(
self
,
value
=
''
):
pad_header
=
cylinder
(
0
,
0
,
0
,
0
,.
03
)
self
.
value
=
value
self
.
pad
=
[
point
(
0
,
0
,
0
)]
self
.
labels
=
[]
#
# pin 1
#
self
.
shape
=
translate
(
pad_header
,
0
,.
2
,
0
)
self
.
pad
.
append
(
point
(
0
,.
2
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'1SCL'
))
#
# pin 2
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad_header
,
0
,.
1
,
0
))
self
.
pad
.
append
(
point
(
0
,.
1
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'SDA'
))
#
# pin 3
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad_header
,
0
,.
0
,
0
))
self
.
pad
.
append
(
point
(
0
,.
0
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'GND'
))
#
# pin 4
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad_header
,
0
,
-
0.1
,
0
))
self
.
pad
.
append
(
point
(
0
,
-
0.1
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'VIN'
))
#
# pin 5
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad_header
,
0
,
-
0.2
,
0
))
self
.
pad
.
append
(
point
(
0
,
-
0.2
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'VDD'
))
class
USB_micro
(
part
):
#
# micro USB
...
...
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