Root/modules/er-oled-fpc30.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 contact {
4    set dx = px/2
5
6    set dy = (py+pyo)/2
7
8    __0: vec @(dx, dy)
9    __1: vec @(-dx, -dy)
10    pad "$i" . __0
11}
12
13frame contacts {
14    set x = -(i-n/2-0.5)*e
15
16    loop i = 1, n
17
18    __0: vec @(x, 0mm)
19    frame contact .
20}
21
22frame hole {
23    __0: vec @(hr, 0mm)
24    circ @ . w
25    __1: vec @(-hr, 0mm)
26    line . __0 w
27    __2: vec @(0mm, hr)
28    __3: vec @(0mm, -hr)
29    line __2 . w
30}
31
32frame outline {
33    set y0 = -py/2
34
35    set yn = ny+y0
36
37    __0: vec @(-cx/2, y0)
38    __1: vec .(0mm, cy)
39    line __0 . w
40    __2: vec @(cx/2, y0)
41    __3: vec .(0mm, cy)
42    line __2 . w
43    __4: vec @(-nx/2, yn)
44    line __1 . w
45    __5: vec @(nx/2, yn)
46    line __3 . w
47    __6: vec @(hx/2, hy+y0)
48    frame hole .
49    __7: vec @(-hx/2, hy+y0)
50    frame hole .
51}
52
53package "ER-OLED-FPC30"
54unit mm
55
56table
57    { n, e, px, py, pyo }
58    { 30, 0.7mm, 0.46mm, 2mm, 0.3mm }
59
60table
61    { cx, cy, nx, ny }
62    { 22mm, 4mm, 12mm, 6.887mm }
63
64table
65    { hx, hy, hr }
66    { 16mm, 4.75mm, 0.4mm }
67
68set w = 5mil
69
70frame outline @
71frame contacts @
72measx contacts.__0 -> contacts.__0 -py/2-1mm
73measy contact.__1 -> contact.__0 2mm
74measy outline.__2 >> outline.__3 -1mm
75measy outline.__2 >> outline.__5 -3mm
76measx outline.__0 >> outline.__2 -3mm
77measx contacts.__0 >> contacts.__0 -3mm
78measx outline.__0 -> contacts.__0 -2mm
79measx outline.__7 >> outline.__6
80measy outline.__2 >> outline.__6 -2mm
81measx outline.__4 >> outline.__5
82

Archive Download this file

Branches:
master



interactive