mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 12:19:42 +02:00
74 lines
949 B
Plaintext
74 lines
949 B
Plaintext
/* MACHINE-GENERATED ! */
|
|
|
|
frame pin {
|
|
__0: vec @(hole/2, hole/2)
|
|
__1: vec @(-hole/2, -hole/2)
|
|
hole . __0
|
|
__2: vec @(-ratio*hole/2, ratio*hole/2)
|
|
__3: vec @(ratio*hole/2, -ratio*hole/2)
|
|
rpad "$n" __2 .
|
|
}
|
|
|
|
frame pin_top {
|
|
set n = N-i
|
|
|
|
frame pin @
|
|
}
|
|
|
|
frame pin_bottom {
|
|
set n = i+1
|
|
|
|
frame pin @
|
|
}
|
|
|
|
frame pins {
|
|
loop i = 0, side-1
|
|
|
|
__0: vec @(pitch*(i-(side-1)/2), 0mm)
|
|
__1: vec .(0mm, width/2)
|
|
frame pin_top .
|
|
__2: vec __0(0mm, -width/2)
|
|
frame pin_bottom .
|
|
}
|
|
|
|
frame marker {
|
|
set r = (side*pitch-x)/2-w
|
|
|
|
set clear = 0.3mm
|
|
|
|
__0: vec @(-x/2-r-clear, -y/2+r)
|
|
__1: vec .(0mm, r)
|
|
circ __0 . w
|
|
}
|
|
|
|
frame outline {
|
|
set x = (side-1)*pitch+ratio*hole
|
|
|
|
set y = width-pitch
|
|
|
|
set w = 5mil
|
|
|
|
__0: vec @(x/2, y/2)
|
|
__1: vec @(-x/2, -y/2)
|
|
rect . __0 w
|
|
frame marker @
|
|
}
|
|
|
|
package "DIP-$N-${width}"
|
|
unit mm
|
|
|
|
set N = 2*side
|
|
|
|
set width = 300mil
|
|
|
|
set hole = 0.8mm
|
|
|
|
set ratio = 2
|
|
|
|
set pitch = 100mil
|
|
|
|
loop side = 2, 20
|
|
|
|
frame outline @
|
|
frame pins @
|