Root/modules/header-50mil-pin.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 pin {
4    table
5        { h, w, d }
6        { 45mil+5mil, 35mil+5mil, 22mil }
7
8    loop n = 1, c
9
10    __0: vec @(((1-c)/2+n-1)*50mil, 0mm)
11    __1: vec .(w/2, h/2)
12    __2: vec __0(-w/2, -h/2)
13    rpad "$n" . __1
14    __3: vec __0(-d/2, d/2)
15    __4: vec __0(d/2, -d/2)
16    hole __3 .
17}
18
19frame outline {
20    set w = 5mil
21
22    set x = c*50mil
23
24    set y = 2.5mm
25
26    __0: vec @(x/2, y/2)
27    __1: vec @(-x/2, -y/2)
28    rect . __0 w
29    __2: vec @(-x/2, y/2-3*w)
30    __3: vec .(50mil, 0mm)
31    line . __2 w
32    __4: vec @(-x/2, -y/2+3*w)
33    __5: vec .(50mil, 0mm)
34    line . __4 w
35}
36
37package "HDR-${c}x1-50mil-PIN"
38unit mil
39
40loop c = 1, 40
41
42frame pin @
43frame outline @
44measx outline.__1 >> outline.__0 -1.5mm
45measy outline.__1 >> outline.__0 1mm
46measy pin.__2 -> pin.__1 0.6mm
47measx pin.__2 -> pin.__1 -1.5mm
48measy pin.__3 << pin.__4 -1mm
49measx pin.__0 -> pin.__0 2mm
50

Archive Download this file

Branches:
master



interactive