Root/modules/usb-a-pcb.fpd

Source at commit 888135686485d28d3706060f1978c9573756250c created 11 years 3 months ago.
By Werner Almesberger, components/lis3dh.lib: ST LIS3DH 3-axis acceleration sensor
1/* MACHINE-GENERATED ! */
2
3frame contacts {
4    table
5        { n, x, y, h }
6        { 1, c1, yl, hl }
7        { 2, c2, ys, hs }
8        { 3, -c2, ys, hs }
9        { 4, -c1, yl, hl }
10
11    table
12        { ys, yl }
13        { (b+bs)/2, (b+bl)/2 }
14
15    table
16        { hs, hl }
17        { b-bs, b-bl }
18
19    __0: vec @(x, y)
20    __1: vec .(s/2, h/2)
21    __2: vec __0(-s/2, -h/2)
22    pad "$n" . __1 bare
23}
24
25frame outline {
26    set width = 5mil
27
28    __0: vec @(w/2, d/2)
29    __1: vec @(-w/2, -d/2)
30    __2: vec @(w/2, -d/2)
31    line __1 . width
32    line . __0 width
33    __3: vec @(-w/2, d/2)
34    line __1 . width
35}
36
37package "USB-A-PCB"
38unit mm
39
40table
41    { w, d }
42    { 12mm, 11.75mm }
43
44table
45    { s, c1, c2, b, bl, bs }
46    { 1mm, 3.5mm, 1mm, 8.65mm, b-7.41mm, b-6.41mm }
47
48__0: vec @(0mm, -d/2)
49frame contacts .
50frame outline @
51measy outline.__1 >> outline.__3 1mm
52measx outline.__3 >> outline.__0 1mm
53measx __0 -> contacts.__0 -1mm
54measx __0 >> contacts.__0 -2mm
55measy outline.__2 -> contacts.__2 -1mm
56measy outline.__2 >> contacts.__2 -2mm
57measx contacts.__2 -> contacts.__1 -1mm
58measy outline.__2 >> contacts.__1 -3mm
59

Archive Download this file

Branches:
master



interactive