Root/modules/pads.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 padS_silk {
4    set x1 = x/2+2.5*w
5
6    set y1 = y/2+2.5*w
7
8    set ?nosilk = ""
9
10    __2: vec @(-x1, y1)
11    __3: vec @(x1, -y1)
12    rect __2 . w
13}
14
15frame padS {
16    set ?type = "S"
17
18    __0: vec @(x/2, y/2)
19    __1: vec @(-x/2, -y/2)
20    pad "1" __0 . bare
21    frame padS_silk @
22}
23
24frame padR_silk {
25    set x1 = x/2+2*w
26
27    set y1 = y/2+2*w
28
29    set ?nosilk = ""
30
31    __2: vec @(-x1, y1)
32    __3: vec @(x1, -y1)
33    rect __2 . w
34}
35
36frame padR {
37    set ?type = "R"
38
39    __0: vec @(x/2, y/2)
40    __1: vec @(-x/2, -y/2)
41    rpad "1" . __0 bare
42    frame padR_silk @
43}
44
45frame padC_silk {
46    set x1 = (x+w)/2
47
48    set y1 = (y+w)/2
49
50    set ?nosilk = ""
51
52    __2: vec @(-x1, y1)
53    circ @ . w
54    __3: vec @(x1, -y1)
55}
56
57frame padC {
58    set ?type = "C"
59
60    __0: vec @(x/2, y/2)
61    __1: vec @(-x/2, -y/2)
62    rpad "1" . __0 bare
63    frame padC_silk @
64}
65
66package "PAD_${type}_$size$nosilk"
67unit auto
68
69table
70    { size, type, x, y }
71    { "1mm", "C", 1mm, 1mm }
72    { 1mm, "S", 1mm, 1mm }
73    { "2mm", "R", 2mm, 0.5mm }
74    { "60x60", "C", 60mil, 60mil }
75    { "60x60", "S", 60mil, 60mil }
76    { "80x80", "C", 80mil, 80mil }
77    { "80x80", "S", 80mil, 80mil }
78    { "100x100", "C", 100mil, 100mil }
79    { "100x100", "S", 100mil, 100mil }
80    { "120x60", "R", 120mil, 60mil }
81    { "120x120", "S", 120mil, 120mil }
82    { "150x150", "C", 150mil, 150mil }
83    { "150x150", "S", 150mil, 150mil }
84
85set factor = 0.7
86
87set w = 5mil
88
89table
90    { nosilk }
91    { "" }
92    { "-NOSILK" }
93
94frame padC @
95frame padR @
96frame padS @
97measy padC.__1 >> padC.__0 y/2
98measy padS.__1 >> padS.__0 1mm
99measx padS_silk.__2 >> padS_silk.__3 1mm
100measx padC_silk.__2 >> padC_silk.__3 1mm
101measy padR.__1 >> padR.__0 1mm
102measx padR.__1 >> padR.__0 -1mm
103measx padR_silk.__2 >> padR_silk.__3 1mm
104measy padR_silk.__3 >> padR_silk.__2 -1mm
105

Archive Download this file

Branches:
master



interactive