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
86674012
Commit
86674012
authored
Aug 24, 2021
by
Neil Gershenfeld
Browse files
wip
parent
6ad55b22
Pipeline
#12185
passed with stage
in 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/pcb.py
View file @
86674012
...
...
@@ -6,7 +6,7 @@
# usage:
# pcb.py | frep.py [dpi [filename]]
#
# Neil Gershenfeld
7
/2
2
/21
# Neil Gershenfeld
8
/2
4
/21
#
# This work may be reproduced, modified, distributed,
# performed, and displayed for any purpose, but must
...
...
@@ -19,8 +19,8 @@
# uncomment for desired output
############################################################
output
=
"top, labels, and exterior"
#
output = "top, labels, holes, and exterior"
#
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"
...
...
@@ -468,7 +468,7 @@ class text:
#
# text class
#
def
__init__
(
self
,
text
,
x
,
y
,
z
,
line
=
''
,
height
=
''
,
width
=
''
,
space
=
''
,
align
=
'CC'
,
color
=
White
,
angle
=
0
):
def
__init__
(
self
,
text
,
x
,
y
,
z
=
0
,
line
=
''
,
height
=
''
,
width
=
''
,
space
=
''
,
align
=
'CC'
,
color
=
White
,
angle
=
0
):
#
# parameters
#
...
...
@@ -1889,7 +1889,7 @@ class header_SWD_4_1(part):
# pin 1
#
self
.
shape
=
translate
(
pad_header
,
-
.
107
,.
05
,
0
)
self
.
shape
=
add
(
self
.
shape
,
cylinder
(
-
.
157
,.
05
,
0
,
0
,.
025
))
#
self.shape = add(self.shape,cylinder(-.157,.05,0,0,.025))
self
.
pad
.
append
(
point
(
-
.
107
,.
05
,
0
))
self
.
labels
.
append
(
self
.
text
(
self
.
pad
[
-
1
].
x
,
self
.
pad
[
-
1
].
y
,
self
.
pad
[
-
1
].
z
,
'CLK'
))
#
...
...
@@ -1992,8 +1992,8 @@ class USB_A_plug(part):
#
# plug cutout
#
self
.
cutout
=
cube
(
-
.
05
,
1
,.
24
,
1
,
zb
,
zt
)
self
.
cutout
=
add
(
self
.
cutout
,
cube
(
-
.
05
,
1
,
-
1
,
-
.
24
,
zb
,
zt
))
self
.
cutout
=
cube
(
-
.
05
,
1
,.
24
,
1
0
,
zb
,
zt
)
self
.
cutout
=
add
(
self
.
cutout
,
cube
(
-
.
05
,
1
0
,
-
1
0
,
-
.
24
,
zb
,
zt
))
class
header_SWD
(
part
):
#
...
...
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