mirror of
git://projects.qi-hardware.com/kicad-libs.git
synced 2024-11-28 18:06:15 +02:00
61 lines
1.1 KiB
Plaintext
61 lines
1.1 KiB
Plaintext
/* MACHINE-GENERATED ! */
|
|
|
|
frame pad {
|
|
__0: vec @(Px/2, Py/2)
|
|
__1: vec @(-Px/2, -Py/2)
|
|
pad "$pin" . __0
|
|
}
|
|
|
|
frame pads {
|
|
table
|
|
{ pin, dx, dy }
|
|
{ 1, -1, -1 }
|
|
{ 2, 1, -1 }
|
|
{ 3, 1, 1 }
|
|
{ 4, -1, 1 }
|
|
|
|
__0: vec @(dx*Gx/2, dy*Gy/2)
|
|
frame pad .
|
|
}
|
|
|
|
frame marker {
|
|
__0: vec @(-(Gx/2)-Px+2*w, -Gy/2)
|
|
__1: vec .(0mm, -2*w)
|
|
circ . __0 w
|
|
}
|
|
|
|
frame outline {
|
|
table
|
|
{ px, py, x, y }
|
|
{ 0mm, Dy/2, Gx-Px-2*w, 0mm }
|
|
{ 0mm, -Dy/2, Gx-Px-2*w, 0mm }
|
|
{ -Dx/2, 0mm, 0mm, Gy-Py-2*w }
|
|
{ Dx/2, 0mm, 0mm, Gy-Py-2*w }
|
|
|
|
__0: vec @(px, py)
|
|
__1: vec .(x/2, y/2)
|
|
__2: vec __0(-x/2, -y/2)
|
|
line . __1 w
|
|
}
|
|
|
|
package "xtal4-${Dx}x${Dy}"
|
|
unit mm
|
|
|
|
table
|
|
{ Dx, Dy, Gx, Gy, Px, Py }
|
|
{ 3.2mm, 2.5mm, 2.2mm, 1.6mm, 1.4mm, 1.2mm }
|
|
{ 5mm, 3.2mm, 2.54mm, 2.2mm, 1.4mm, 1.2mm }
|
|
{ 6mm, 3.6mm, 4.4mm, 2.4mm, 1.8mm, 1.4mm }
|
|
|
|
set w = 5mil
|
|
|
|
frame pads @
|
|
frame outline @
|
|
frame marker @
|
|
measx pads.__0 -> pads.__0 1mm+Py/2+Gy
|
|
measy pads.__0 -> pads.__0 -1mm-Px/2-Gx
|
|
measy pad.__1 -> pad.__0 1mm
|
|
measx pad.__1 -> pad.__0 -1mm
|
|
measx outline.__0 >> outline.__0 Gy/2+Py/2+1.5mm
|
|
measy outline.__0 >> outline.__0 -(Gx/2+Px/2+1.5mm)
|