projects
/
hw
/
bdale
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename some footprints to be less generic
[hw/bdale]
/
pkg
/
newlib
/
molex
/
picoblade-th-v.py
diff --git
a/pkg/newlib/molex/picoblade-th-v.py
b/pkg/newlib/molex/picoblade-th-v.py
index 5f94ed3c65f807a74e7a06d7b44ffc38b8bfa591..a25f1615bba03c7f5c65f85105ade6f74930a131 100755
(executable)
--- a/
pkg/newlib/molex/picoblade-th-v.py
+++ b/
pkg/newlib/molex/picoblade-th-v.py
@@
-10,7
+10,7
@@
# dimensions in mm from 530470410_sd.pdf datasheet
PinDiam = 0.52
PinSpacing = 1.25
# dimensions in mm from 530470410_sd.pdf datasheet
PinDiam = 0.52
PinSpacing = 1.25
-
Row
Offset = 1.15
+
Box
Offset = 1.15
BoxHeight = 3.2
BoxEnd = 1.5
LineWidth = 600
BoxHeight = 3.2
BoxEnd = 1.5
LineWidth = 600
@@
-43,8
+43,8
@@
for pin in range (1,pins+1):
else:
Flags = '0x0001'
print ' Pin[', \
else:
Flags = '0x0001'
print ' Pin[', \
- mm2mils100(
BoxEnd +
(pin-1)*PinSpacing), \
-
mm2mils100(RowOffset)
, \
+ mm2mils100(
(pins-1)*PinSpacing -
(pin-1)*PinSpacing), \
+
0
, \
3500, \
1200, \
4100, \
3500, \
1200, \
4100, \
@@
-54,31
+54,31
@@
for pin in range (1,pins+1):
BoxWidth = (BoxEnd * 2) + ((pins - 1) * PinSpacing);
print ' ElementLine[', \
BoxWidth = (BoxEnd * 2) + ((pins - 1) * PinSpacing);
print ' ElementLine[', \
- mm2mils100(
0
), \
- mm2mils100(
0
), \
- mm2mils100(
0
), \
- mm2mils100(BoxHeight), \
+ mm2mils100(
-BoxEnd
), \
+ mm2mils100(
-BoxOffset
), \
+ mm2mils100(
-BoxEnd
), \
+ mm2mils100(BoxHeight
-BoxOffset
), \
LineWidth, ']'
print ' ElementLine[', \
LineWidth, ']'
print ' ElementLine[', \
- mm2mils100(
0
), \
- mm2mils100(BoxHeight), \
- mm2mils100(BoxWidth), \
- mm2mils100(BoxHeight), \
+ mm2mils100(
-BoxEnd
), \
+ mm2mils100(BoxHeight
-BoxOffset
), \
+ mm2mils100(BoxWidth
-BoxEnd
), \
+ mm2mils100(BoxHeight
-BoxOffset
), \
LineWidth, ']'
print ' ElementLine[', \
LineWidth, ']'
print ' ElementLine[', \
- mm2mils100(BoxWidth), \
- mm2mils100(BoxHeight), \
- mm2mils100(BoxWidth), \
- mm2mils100(
0
), \
+ mm2mils100(BoxWidth
-BoxEnd
), \
+ mm2mils100(BoxHeight
-BoxOffset
), \
+ mm2mils100(BoxWidth
-BoxEnd
), \
+ mm2mils100(
-BoxOffset
), \
LineWidth, ']'
print ' ElementLine[', \
LineWidth, ']'
print ' ElementLine[', \
- mm2mils100(BoxWidth), \
- mm2mils100(
0
), \
- mm2mils100(
0
), \
- mm2mils100(
0
), \
+ mm2mils100(BoxWidth
-BoxEnd
), \
+ mm2mils100(
-BoxOffset
), \
+ mm2mils100(
-BoxEnd
), \
+ mm2mils100(
-BoxOffset
), \
LineWidth, ']'
print ")"
LineWidth, ']'
print ")"