Date:2012-08-22 21:30:36 (6 years 7 months ago)
Author:Werner Almesberger
Commit:92b93912a4909c3b13ca1e70ef62198658eabea3
Message:modules/: add E-SWITCH series 320 tact switch

Files: modules/HIERARCHY (1 diff)
modules/INFO (1 diff)
modules/Makefile (1 diff)
modules/e-switch320.fpd (1 diff)

Change Details

modules/HIERARCHY
383383        TACTIL-SW-SPST-RA-5.74mm-8.36mm
384384        TACTIL-SW-SPST-RA-9.25mm-11.86mm
385385        TACTIL-SW-SPST-RA-13.26mm-15.85mm
386        E-SWITCH_320
modules/INFO
547547# Hirose ZX62M-B-5P(01)
548548# http://www.hirose.co.jp/cataloge_hp/e24200011.pdf
549549#
550
551# E-SWITCH series 320 tact switch
552F: e-switch320
553#
554# http://www.e-switch.com/Portals/0/Series_Pdf/320.pdf
555#
556# Similar:
557#
558# http://www.ck-components.com/index.php?module=media&action=Display&cmpref=13325&lang=en&width=&height=&format=&alt=
559#
modules/Makefile
22    bat-clip-aa-th bga \
33    c-smd c-t-smd \
44    dcjack din-5 dip dip4of6 do-214 dvi-recept-ra \
5    eus \
5    e-switch320 eus \
66        fiducial \
77    header he-2row-dip he-shrouded \
88    ir \
modules/e-switch320.fpd
1/* MACHINE-GENERATED ! */
2
3frame pos {
4    table
5        { x, y }
6        { -1.5, -1.5 }
7        { 1.5, 0.5 }
8
9    set d = 1mm+0.05mm
10
11    __0: vec @(x*pitch, y*pitch)
12    __1: vec .(d/2, d/2)
13    __2: vec __0(-d/2, -d/2)
14    hole . __1
15}
16
17frame pin {
18    set d = 1.22mm+0.07mm
19
20    set ratio = 2.5
21
22    __0: vec @(d/2, d/2)
23    __1: vec @(-d/2, -d/2)
24    hole . __0
25    __2: vec @(d/2*ratio, -d/2*ratio)
26    __3: vec @(-d/2*ratio, d/2*ratio)
27    rpad "$pin" . __2 bare
28}
29
30frame pins {
31    table
32        { pin, x, y }
33        { 1, -1.5, 1.5 }
34        { 2, 0.5, -0.5 }
35
36    __0: vec @(x*pitch, y*pitch)
37    frame pin .
38}
39
40frame silk {
41    table
42        { case, cap }
43        { 12.4mm, 10.2mm }
44
45    __0: vec @(case/2, case/2)
46    __1: vec @(-case/2, -case/2)
47    rect . __0 w
48    __2: vec @(cap/2, -cap/2)
49    __3: vec @(-cap/2, cap/2)
50}
51
52package "E-SWITCH_320"
53unit mm
54
55set w = 5mil
56
57set pitch = 2.54mm
58
59__0: vec @(0mm, 0mm)
60frame silk @
61frame pins @
62frame pos @
63measy silk.__1 >> silk.__0 2mm
64measx silk.__1 >> silk.__0 -2mm
65measx pins.__0 >> __0 -150mil
66measy pos.__0 >> __0
67measy __0 >> pins.__0
68measx __0 >> pins.__0 -4mm
69measy pins.__0 >> __0 50mil+1mm
70measy pin.__1 -> pin.__0 -3mm
71measx __0 >> pos.__0 50mil
72measx pos.__2 -> pos.__1 -1mm
73measx pin.__3 -> pin.__2 2mm

Archive Download the corresponding diff file

Branches:
master



interactive