Root/modules/rev-led.fpd

Source at commit 7f3f9267cb007e13eca0af273f9eedad0c6c5659 created 1 year 6 months ago.
By Werner Almesberger, components/stm32.lib: add STM32L052x6/8 in QFN32 (KxU) package
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
47

Archive Download this file

Branches:
master



interactive