mirror of
git://projects.qi-hardware.com/kicad-libs.git
synced 2024-11-23 01:43:07 +02:00
eus.fpd: smarter codes from Werner Almesberger
This commit is contained in:
parent
4cc64c9393
commit
b287ab53d2
@ -1,33 +1,6 @@
|
|||||||
/* MACHINE-GENERATED ! */
|
/* MACHINE-GENERATED ! */
|
||||||
|
|
||||||
frame pin_b {
|
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 pins_bottom {
|
|
||||||
set n = i+1
|
|
||||||
|
|
||||||
__0: vec @(x, 0mm)
|
|
||||||
frame pin_b .
|
|
||||||
}
|
|
||||||
|
|
||||||
frame pins_b {
|
|
||||||
set y = h/2
|
|
||||||
|
|
||||||
set x = (i-(N/2-1)/2)*Pitch
|
|
||||||
|
|
||||||
loop i = 0, N/2-1
|
|
||||||
|
|
||||||
__1: vec @(0mm, -y)
|
|
||||||
frame pins_bottom .
|
|
||||||
}
|
|
||||||
|
|
||||||
frame pin_t {
|
|
||||||
__0: vec @(Hole/2, Hole/2)
|
__0: vec @(Hole/2, Hole/2)
|
||||||
__1: vec @(-Hole/2, -Hole/2)
|
__1: vec @(-Hole/2, -Hole/2)
|
||||||
hole . __0
|
hole . __0
|
||||||
@ -36,22 +9,22 @@ frame pin_t {
|
|||||||
rpad "$n" . __2
|
rpad "$n" . __2
|
||||||
}
|
}
|
||||||
|
|
||||||
frame pins_top {
|
frame pins {
|
||||||
set n = N-i-2
|
table
|
||||||
|
{ n, top, ix }
|
||||||
|
{ 1, 0, 0 }
|
||||||
|
{ 2, 0, 1 }
|
||||||
|
{ 3, 0, 2 }
|
||||||
|
{ 4, 0, 3 }
|
||||||
|
{ 5, 1, 3 }
|
||||||
|
{ 6, 1, 0 }
|
||||||
|
|
||||||
__0: vec @(x, 0mm)
|
set x = (ix-N/4+0.5)*Pitch
|
||||||
frame pin_t .
|
|
||||||
}
|
|
||||||
|
|
||||||
frame pins_t {
|
set y = h*(top-0.5)
|
||||||
set y = h/2
|
|
||||||
|
|
||||||
set x = (3*i-(N/2-1)/2)*Pitch
|
__0: vec @(x, y)
|
||||||
|
frame pin .
|
||||||
loop i = 0, 1
|
|
||||||
|
|
||||||
__0: vec @(0mm, y)
|
|
||||||
frame pins_top .
|
|
||||||
}
|
}
|
||||||
|
|
||||||
frame marker {
|
frame marker {
|
||||||
@ -73,11 +46,10 @@ frame outline {
|
|||||||
__1: vec @(-x/2, -y/2)
|
__1: vec @(-x/2, -y/2)
|
||||||
rect . __0 w
|
rect . __0 w
|
||||||
frame marker @
|
frame marker @
|
||||||
frame pins_t @
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package "EUS"
|
package "EUS"
|
||||||
unit mm
|
unit auto
|
||||||
|
|
||||||
set Pitch = 3.18mm
|
set Pitch = 3.18mm
|
||||||
|
|
||||||
@ -87,18 +59,17 @@ set ratio = 1.8
|
|||||||
|
|
||||||
table
|
table
|
||||||
{ name, N, B, H, h, W }
|
{ name, N, B, H, h, W }
|
||||||
{ "SOIC", 8, 2.8mm, 19.94mm, 15.88mm, 13.59mm }
|
{ "EUS", 8, 2.8mm, 19.94mm, 15.88mm, 13.59mm }
|
||||||
|
|
||||||
frame outline @
|
frame outline @
|
||||||
frame pins_b @
|
frame pins @
|
||||||
measy pin_b.__1 >> pin_b.__0 -16mm
|
measy outline.__0 >> outline.__1 -18mm
|
||||||
measx pin_b.__1 -> pin_b.__0 -2mm
|
measx outline.__1 >> outline.__0 -3mm
|
||||||
measy outline.__0 >> outline.__1 -19mm
|
measx outline.__0 << pins.__0 3mm
|
||||||
measx outline.__1 >> outline.__0 -2mm
|
measy outline.__0 << pins.__0 -4mm
|
||||||
measy pin_b.__3 -> pin_b.__2 7.5mm
|
measx pins.__0 >> pins.__0 h+3mm
|
||||||
measy pins_bottom.__0 >> outline.__1 -5mm
|
measx outline.__1 -> pins.__0 5mm
|
||||||
measx outline.__1 -> pins_bottom.__0 5mm
|
measx pins.__0 -> pins.__0 3mm
|
||||||
measx pins_bottom.__0 -> pins_bottom.__0 3mm
|
measx pin.__1 -> pin.__0 -2.5mm
|
||||||
measy outline.__0 << pins_top.__0 -4mm
|
measy pin.__2 -> pin.__3 6mm
|
||||||
measx outline.__0 << pins_top.__0 3mm
|
measx pin.__3 -> pin.__2 -6mm
|
||||||
meas pins_top.__0 >> pins_top.__0 3mm
|
|
||||||
|
Loading…
Reference in New Issue
Block a user