1
0
mirror of git://projects.qi-hardware.com/kicad-libs.git synced 2025-04-21 12:17:26 +03:00

add C&K TSWA series switch with 22 mm wheel

This commit is contained in:
Werner Almesberger
2013-09-15 16:15:06 -03:00
parent 2aa3233623
commit 3f1b978b2b
7 changed files with 91 additions and 2 deletions

View File

@@ -400,3 +400,4 @@ Mechanical
TACTIL-SW-SPST-RA-13.26mm-15.85mm
E-SWITCH_320
EVQQ7
TSWA-22mm

View File

@@ -12,7 +12,7 @@ MODULES=8_10-card 8_10-socket-ra 8_10-socket-ra-push-pull \
qfn qfp \
rca-3-ra rj45 \
soic sot23 spacer sot sot-323 ssop stdpass \
tactile-sw-spst-ra-dip to tsop tssop5 \
tactile-sw-spst-ra-dip to tsop tssop5 tswa \
usb-a-dual-recept-r usb-a-pcb usb_a_plug_smt \
xlr-plug xlr-socket \
xtal-2 xtal-4 \

56
modules/tswa.fpd Normal file
View File

@@ -0,0 +1,56 @@
/* MACHINE-GENERATED ! */
frame holes {
set xi = 9mm
set d = 1.6mm
loop i = 0, 1
__0: vec @(xi*(i-0.5), 0mm)
__1: vec .(d/2, d/2)
__2: vec __0(-d/2, -d/2)
hole . __1
}
frame pins {
table
{ pin, x, y }
{ "NO", 0mm, y2-y1 }
{ "A", -xo/2, 0mm }
{ "B", 0mm, -y1 }
{ "COM", xo/2, 0mm }
table
{ xo, y1, y2 }
{ 18.52mm, xo/2, 10.83mm }
set d = 1.3mm
__0: vec @(x, y)
__1: vec .(d/2, d/2)
__2: vec __0(-d/2, -d/2)
rpad "$pin" . __1
}
frame outline {
set w = 5mil
__0: vec @(0mm, d/2)
circ @ . w
}
package "TSWA-${d}"
unit mm
set d = 22mm
frame pins @
frame outline @
frame holes @
measx pins.__0 >> pins.__0 5mm
measx holes.__0 >> holes.__0 4mm
measx holes.__2 -> holes.__1 -1mm
measx pins.__2 -> pins.__1 -1mm
measy pins.__0 >> pins.__0 14mm
measy pins.__0 >> holes.__0 13mm