Date:2015-05-28 09:12:57 (4 years 4 months ago)
Author:Werner Almesberger
Commit:ab61cf9bec783ccb20c00d50915a4cf3beffe8dc
Message:modules/rev-led.fpd: reverse-mounted LEDs (just 1206 for now)

Examples: LTST-C230, APTR3216EC
Files: AUTHORS (1 diff)
modules/HIERARCHY (1 diff)
modules/Makefile (1 diff)
modules/rev-led.fpd (1 diff)

Change Details

AUTHORS
121121  modules/1059.fpd
122122  modules/0805-6.fpd
123123  modules/df40.fpd
124  modules/rev-led.fpd
124125
125126Xiangfu <xiangfu@openmobilefree.net>
126127
modules/HIERARCHY
332332            LEDSMD-0603R
333333            SOD-123
334334            SOD-323
335        LED-Reverse
336            LED-1206-REV
335337        Crystal
336338            xtal2-3.2mmx1.5mm
337339            xtal2-11.5mmx4.83mm
modules/Makefile
1111    mic-ra-dip mini-usb\
1212    pads pads-array phonejack pogo \
1313    qfn qfp \
14    rca-3-ra rj45 \
14    rca-3-ra rev-led rj45 \
1515    sod soic sot23 spacer sot sot-323 ssop stdpass sw-spdt-smt \
1616    tactile-sw-spst-ra-dip to tsop tssop5 tswa \
1717    usb-a-dual-recept-r usb-a-pcb usb_a_plug_smt usb_a_rcpt_smt \
modules/rev-led.fpd
1/* MACHINE-GENERATED ! */
2
3frame marker {
4    set gap = 0.3mm
5
6    __0: vec @(Hx/2+Px+gap+w/2, 0mm)
7    __1: vec .(0mm, Py/2)
8    __2: vec __0(0mm, -Py/2)
9    line __1 . w
10}
11
12frame hole {
13    __0: vec @(Hx/2, Hy/2)
14    __1: vec @(-Hx/2, -Hy/2)
15    rect . __0 w
16}
17
18frame pads {
19    table
20        { n, dx }
21        { 1, -1 }
22        { 2, 1 }
23
24    __0: vec @(Hx/2*dx, 0mm)
25    __1: vec .(Px*dx, Py/2)
26    __2: vec __0(0mm, -Py/2)
27    pad "$n" __1 .
28}
29
30package "LED-$size-REV"
31unit mm
32
33table
34    { size, Px, Py, Hx, Hy }
35    { 1206, 1.5mm, 1.6mm, 5.1mm-2*Px, 2.3mm }
36
37set w = 5mil
38
39frame hole @
40frame pads @
41frame marker @
42measx hole.__1 >> hole.__0 -0.5mm
43measy hole.__1 >> hole.__0 Px+1mm
44measy pads.__2 -> pads.__1 Px+0.5mm
45measx pads.__1 -> pads.__2 0.5mm
46measx pads.__1 >> pads.__1 1mm

Archive Download the corresponding diff file

Branches:
master



interactive