mirror of
git://projects.qi-hardware.com/kicad-libs.git
synced 2024-11-07 15:41:32 +02:00
71 lines
842 B
Plaintext
71 lines
842 B
Plaintext
/* MACHINE-GENERATED ! */
|
|
|
|
frame pin {
|
|
__0: vec @(-Px/2, Py/2)
|
|
__1: vec @(Px/2, -Py/2)
|
|
pad "$n" __0 .
|
|
}
|
|
|
|
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 . 5mil
|
|
}
|
|
|
|
frame outline {
|
|
set x = (side-1)*pitch+Px
|
|
|
|
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 "MDIP-$N-${width}"
|
|
unit mm
|
|
|
|
set N = 2*side
|
|
|
|
set width = 300mil
|
|
|
|
set pitch = 100mil
|
|
|
|
set Px = 1.78mm
|
|
|
|
set Py = 1.52mm
|
|
|
|
loop side = 2, 6
|
|
|
|
frame outline @
|
|
frame pins @
|