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
d4db36dc
Commit
d4db36dc
authored
Jan 16, 2022
by
Neil Gershenfeld
Browse files
wip
parent
abe18afe
Pipeline
#19377
passed with stage
in 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/pcb.py
View file @
d4db36dc
...
...
@@ -23,7 +23,7 @@ output = "top, labels, and exterior"
#output = "top, labels, holes, and exterior"
#output = "top, bottom, labels, and exterior"
#output = "top, bottom, labels, holes, and exterior"
#
output = "top traces"
x
output
=
"top traces"
#output = "top traces and exterior"
#output = "bottom traces"
#output = "bottom traces reversed"
...
...
@@ -6772,9 +6772,106 @@ class SAMD11D(part):
self
.
pad
.
append
(
point
(
d
,.
225
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'A04'
))
class
ATtiny1624_SOIC
(
part
):
#
# ATtiny1624-SS
#
def
__init__
(
self
,
value
=
''
):
self
.
value
=
value
self
.
pad
=
[
point
(
0
,
0
,
0
)]
self
.
labels
=
[]
d
=
0.11
w
=
0.015
h
=
.
03
pad
=
cube
(
-
h
,
h
,
-
w
,
w
,
0
,
0
)
#
# pin 1
#
self
.
shape
=
translate
(
pad
,
-
d
,.
15
,
0
)
self
.
shape
=
add
(
self
.
shape
,
cylinder
(
-
d
-
h
,.
15
,
0
,
0
,
w
))
self
.
pad
.
append
(
point
(
-
d
,.
15
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'.VCC'
))
#
# pin 2
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad
,
-
d
,.
1
,
0
))
self
.
pad
.
append
(
point
(
-
d
,.
1
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'PA4'
))
#
# pin 3
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad
,
-
d
,.
050
,
0
))
self
.
pad
.
append
(
point
(
-
d
,.
05
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'PA5'
))
#
# pin 4
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad
,
-
d
,
0
,
0
))
self
.
pad
.
append
(
point
(
-
d
,
0
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'PA6'
))
#
# pin 5
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad
,
-
d
,
-
.
05
,
0
))
self
.
pad
.
append
(
point
(
-
d
,
-
.
05
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'PA7'
))
#
# pin 6
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad
,
-
d
,
-
.
1
,
0
))
self
.
pad
.
append
(
point
(
-
d
,
-
.
1
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'PB3'
))
#
# pin 7
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad
,
-
d
,
-
.
15
,
0
))
self
.
pad
.
append
(
point
(
-
d
,
-
.
15
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'PB2'
))
#
# pin 8
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad
,
d
,
-
.
15
,
0
))
self
.
pad
.
append
(
point
(
d
,
-
.
15
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'PB1'
))
#
# pin 9
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad
,
d
,
-
.
1
,
0
))
self
.
pad
.
append
(
point
(
d
,
-
.
1
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'PB0'
))
#
# pin 10
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad
,
d
,
-
.
05
,
0
))
self
.
pad
.
append
(
point
(
d
,
-
.
05
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'UPDI'
))
#
# pin 11
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad
,
d
,
0
,
0
))
self
.
pad
.
append
(
point
(
d
,
0
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'PA1'
))
#
# pin 12
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad
,
d
,.
050
,
0
))
self
.
pad
.
append
(
point
(
d
,.
05
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'PA2'
))
#
# pin 13
#
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad
,
d
,.
1
,
0
))
self
.
pad
.
append
(
point
(
d
,.
1
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'PA3'
))
#
# pin 14
self
.
shape
=
add
(
self
.
shape
,
translate
(
pad
,
d
,.
15
,
0
))
self
.
pad
.
append
(
point
(
d
,.
15
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'GND'
))
class
ATtiny1624_TSSOP
(
part
):
#
# ATtiny1624-X
UR
# ATtiny1624-X
#
def
__init__
(
self
,
value
=
''
):
self
.
value
=
value
...
...
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