Root/modules/mic-ra-dip.fpd

Source at commit 42abcc385753e29209a98a886537a4783ac8a009 created 7 years 1 month ago.
By Alvaro Gamez Machado, modules/dfn.fpd: replace fixed '8' by 'pins' variable, so 6-pin versions of the footprints are numbered work too
1/* MACHINE-GENERATED ! */
2
3frame outline {
4    __0: vec @(-Dia/2, Height/2)
5    __2: vec .(Dia, py+factor*hole/2+2*w)
6    rect . __0 w
7    __1: vec @(Dia/2, -Height/2)
8    rect __0 . w
9}
10
11frame pins {
12    table
13        { n, dx }
14        { 1, -1 }
15        { 2, 1 }
16
17    __0: vec @(0mm, Height/2+py)
18    __1: vec .(dx*Pitch/2, 0mm)
19    __2: vec .(hole/2, hole/2)
20    __3: vec __1(-hole/2, -hole/2)
21    hole . __2
22    __4: vec __1(factor*hole/2, -factor*hole/2)
23    __5: vec __1(-factor*hole/2, factor*hole/2)
24    rpad "$n" . __4 bare
25}
26
27package "MIC-RA-DIP-${Dia}x${Height}"
28unit auto
29
30table
31    { Dia, Height, Pitch, py }
32    { 9.7mm, 6.7mm, 2.54mm, 1.5mm }
33
34set w = 5mil
35
36set hole = 0.9mm
37
38set factor = 1.7
39
40frame outline @
41frame pins @
42measy outline.__1 >> outline.__0 -1mm
43measx outline.__0 >> outline.__1 -(Height+1mm)
44meas pins.__1 >> pins.__1 2mm
45measx pins.__3 -> pins.__2 -factor*hole/2
46

Archive Download this file

Branches:
master



interactive