mirror of
git://projects.qi-hardware.com/kicad-libs.git
synced 2024-11-22 19:14:08 +02:00
dip.fpd, dip4of6.fpd: copied both from /labsw/modules
This commit is contained in:
parent
92a8467971
commit
9c6b38d1ae
73
modules/dip.fpd
Normal file
73
modules/dip.fpd
Normal file
@ -0,0 +1,73 @@
|
||||
/* 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 @
|
90
modules/dip4of6.fpd
Normal file
90
modules/dip4of6.fpd
Normal file
@ -0,0 +1,90 @@
|
||||
/* MACHINE-GENERATED ! */
|
||||
|
||||
frame hole {
|
||||
__0: vec @(hole/2, hole/2)
|
||||
__1: vec @(-hole/2, -hole/2)
|
||||
hole . __0
|
||||
}
|
||||
|
||||
frame pin {
|
||||
frame hole @
|
||||
__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, populated-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 holes {
|
||||
loop i = populated, side-1
|
||||
|
||||
__0: vec @(pitch*(i-(side-1)/2), 0mm)
|
||||
__1: vec .(0mm, width/2)
|
||||
frame hole .
|
||||
__2: vec __0(0mm, -width/2)
|
||||
frame hole .
|
||||
}
|
||||
|
||||
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}/${M}-${width}"
|
||||
unit mm
|
||||
|
||||
set N = 2*populated
|
||||
set M = 2*side
|
||||
|
||||
set width = 300mil
|
||||
|
||||
set hole = 0.8mm
|
||||
|
||||
set ratio = 2
|
||||
|
||||
set pitch = 100mil
|
||||
|
||||
set side = 3
|
||||
set populated = 2
|
||||
|
||||
frame outline @
|
||||
frame pins @
|
||||
frame holes @
|
Loading…
Reference in New Issue
Block a user