mirror of
git://projects.qi-hardware.com/kicad-libs.git
synced 2024-11-25 01:39:42 +02:00
78 lines
1.4 KiB
Plaintext
78 lines
1.4 KiB
Plaintext
/* MACHINE-GENERATED ! */
|
|
|
|
frame knob {
|
|
table
|
|
{ x }
|
|
{ -tx/2 }
|
|
{ tx/2 }
|
|
|
|
__0: vec @(x, -oy/2)
|
|
__1: vec .(0mm, -ky)
|
|
__2: vec .(-kx/2, 0mm)
|
|
__3: vec .(0mm, ky)
|
|
line . __2 w
|
|
__4: vec __1(kx/2, 0mm)
|
|
line __2 . w
|
|
__5: vec .(0mm, ky)
|
|
line . __4 w
|
|
}
|
|
|
|
frame holes {
|
|
table
|
|
{ x }
|
|
{ -hx/2 }
|
|
{ hx/2 }
|
|
|
|
__0: vec @(x, 0mm)
|
|
__1: vec .(hr, hr)
|
|
__2: vec __0(-hr, -hr)
|
|
hole . __1
|
|
}
|
|
|
|
frame pads {
|
|
set x = e*(i-2)
|
|
|
|
loop i = 1, 3
|
|
|
|
__0: vec @(x, hy)
|
|
__1: vec .(-px/2, 0mm)
|
|
__2: vec .(px, py)
|
|
pad "$i" __1 .
|
|
}
|
|
|
|
frame outline {
|
|
__0: vec @(ox/2, -oy/2)
|
|
__1: vec __0(0mm, oy)
|
|
line . __0 w
|
|
__2: vec @(-ox/2, -oy/2)
|
|
line . __0 w
|
|
__3: vec __2(0mm, oy)
|
|
line . __2 w
|
|
}
|
|
|
|
package "SW-${type}"
|
|
unit mm
|
|
|
|
table
|
|
{ type, px, py, e, hx, hy, hr, ox, oy, kx, ky, tx }
|
|
{ "JS102011SAQN", 1.2mm, 2.5mm, 2.5mm, 6.8mm, 4mm-py, 0.9mm/2, 9mm, 3.6mm, 1.5mm, 2mm, 2mm }
|
|
|
|
set w = 5mil
|
|
|
|
frame outline @
|
|
frame pads @
|
|
frame holes @
|
|
frame knob @
|
|
measx holes.__0 >> holes.__0 -3.5mm-ky
|
|
measx holes.__2 -> holes.__1 2*hr+0.5mm
|
|
measy pads.__1 -> pads.__2 0.5mm
|
|
measx pads.__1 -> pads.__2 py+0.5mm
|
|
measx pads.__0 -> pads.__0 -0.5mm
|
|
measy pads.__0 << holes.__0 -2mm
|
|
measy pads.__2 << holes.__0 -3mm
|
|
measx knob.__1 >> knob.__1 ky+1mm
|
|
measy knob.__2 -> knob.__0 0.5mm
|
|
measx knob.__2 -> knob.__4 -0.7mm
|
|
measy outline.__2 >> outline.__3 1mm
|
|
measx outline.__2 >> outline.__0 -ky-2.5mm
|