Date:2013-09-16 11:45:21 (6 years 2 days ago)
Author:Werner Almesberger
Commit:18ed84d8318543385b7db15b115dfef8fd715fb6
Message:add C&K JS102011SAQN SPDT SMT switch (symbol and footprint)

Files: AUTHORS (1 diff)
components/HIERARCHY (1 diff)
components/switch.dcm (1 diff)
components/switch.lib (3 diffs)
modules/HIERARCHY (1 diff)
modules/Makefile (1 diff)
modules/sw-spdt-smt.fpd (1 diff)

Change Details

AUTHORS
106106  modules/er-oled-fpc30.fpd
107107  modules/memcard8-amp-10100660.fpd
108108  modules/tswa.fpd
109  modules/sw-spdt-smt.fpd
109110
110111Xiangfu <xiangfu@openmobilefree.net>
111112
components/HIERARCHY
145145    Switch
146146        FSMRA2JH
147147        SW_PUSH
148        SW-SPDT
148149        EVQQ7
149150        TSWA
150151    Case
components/switch.dcm
1EESchema-DOCLIB Version 2.0 Date: Wed 04 Apr 2012 09:09:37 CST
1EESchema-DOCLIB Version 2.0 Date: Mon Sep 16 06:18:01 2013
22#
33$CMP FSMRA2JH
44D FSMRA2JH, SWITCH, TACTILE, SPNO, R/A, THROUGH HOLE
components/switch.lib
1EESchema-LIBRARY Version 2.3 Date: 2012年04月27日 (週五) 17時05分56秒
1EESchema-LIBRARY Version 2.3 Date: Mon Sep 16 06:18:01 2013
22#encoding utf-8
33#
44# FSMRA2JH
...... 
66DEF FSMRA2JH SW 0 40 N N 1 F N
77F0 "SW" -184 300 60 H V C CNN
88F1 "FSMRA2JH" -370 -168 60 H V C CNN
9F2 "~" 0 0 60 H V C CNN
10F3 "~" 0 0 60 H V C CNN
911DRAW
1012S -250 200 250 -100 0 1 0 N
1113S -170 50 170 60 0 1 0 N
...... 
1719ENDDRAW
1820ENDDEF
1921#
22# SW-SPDT
23#
24DEF SW-SPDT SW 0 40 Y N 1 F N
25F0 "SW" 50 200 60 H V C CNN
26F1 "SW-SPDT" 0 -200 60 H V C CNN
27F2 "~" 0 0 60 H V C CNN
28F3 "~" 0 0 60 H V C CNN
29DRAW
30P 2 0 1 0 -150 0 100 100 N
31X 3 3 450 -100 300 L 50 50 0 1 P
32X 1 1 450 100 300 L 50 50 1 1 P
33X 2 2 -450 0 300 R 50 50 1 1 P
34ENDDRAW
35ENDDEF
36#
2037# SW_PUSH
2138#
2239DEF SW_PUSH SW 0 40 N N 1 F N
2340F0 "SW" 150 110 60 H V C CNN
2441F1 "SW_PUSH" 0 -80 60 H V C CNN
42F2 "~" 0 0 60 H V C CNN
43F3 "~" 0 0 60 H V C CNN
2544DRAW
2645S -170 50 170 60 0 1 0 N
2746P 4 0 1 0 -40 60 -30 90 30 90 40 60 N
modules/HIERARCHY
402402        TACTIL-SW-SPST-RA-13.26mm-15.85mm
403403        E-SWITCH_320
404404        EVQQ7
405        SW-JS102011SAQN
405406        TSWA-22mm
modules/Makefile
1111    pads pads-array phonejack \
1212    qfn qfp \
1313    rca-3-ra rj45 \
14    soic sot23 spacer sot sot-323 ssop stdpass \
14    soic sot23 spacer sot sot-323 ssop stdpass sw-spdt-smt \
1515    tactile-sw-spst-ra-dip to tsop tssop5 tswa \
1616    usb-a-dual-recept-r usb-a-pcb usb_a_plug_smt \
1717    xlr-plug xlr-socket \
modules/sw-spdt-smt.fpd
1/* MACHINE-GENERATED ! */
2
3frame knob {
4    table
5        { x }
6        { -tx/2 }
7        { tx/2 }
8
9    __0: vec @(x, -oy/2)
10    __1: vec .(0mm, -ky)
11    __2: vec .(-kx/2, 0mm)
12    __3: vec .(0mm, ky*0.75)
13    line . __2 w
14    __4: vec __1(kx/2, 0mm)
15    line __2 . w
16    __5: vec .(0mm, ky*0.75)
17    line . __4 w
18}
19
20frame holes {
21    table
22        { x }
23        { -hx/2 }
24        { hx/2 }
25
26    __0: vec @(x, 0mm)
27    __1: vec .(hr, hr)
28    __2: vec __0(-hr, -hr)
29    hole . __1
30}
31
32frame pads {
33    set x = e*(i-2)
34
35    loop i = 1, 3
36
37    __0: vec @(x, hy)
38    __1: vec .(-px/2, 0mm)
39    __2: vec .(px, py)
40    pad "$i" __1 .
41}
42
43frame outline {
44    table
45        { x }
46        { -ox/2 }
47        { ox/2 }
48
49    __0: vec @(x, -oy/2)
50    __1: vec .(0mm, oy)
51    line __0 . w
52}
53
54package "SW-${type}"
55unit mm
56
57table
58    { type, px, py, e, hx, hy, hr, ox, oy, kx, ky, tx }
59    { "JS102011SAQN", 1.2mm, 2.5mm, 2.5mm, 6.8mm, 4mm-py, 0.9mm/2, 9mm, 3.6mm, 1.5mm, 2mm, 2mm }
60
61set w = 5mil
62
63frame outline @
64frame pads @
65frame holes @
66frame knob @
67measx outline.__0 >> outline.__0 -2.5mm-ky
68measx holes.__0 >> holes.__0 -3.5mm-ky
69measx holes.__2 -> holes.__1 2*hr+0.5mm
70measy pads.__1 -> pads.__2 0.5mm
71measx pads.__1 -> pads.__2 py+0.5mm
72measy outline.__0 -> outline.__1 1mm
73measx pads.__0 -> pads.__0 -0.5mm
74measy pads.__0 << holes.__0 -2mm
75measy pads.__2 << holes.__0 -3mm
76measx knob.__1 >> knob.__1 ky
77measy knob.__2 -> knob.__0 0.5mm
78measx knob.__2 -> knob.__4 -0.7mm

Archive Download the corresponding diff file

Branches:
master



interactive