1
0
mirror of git://projects.qi-hardware.com/xue.git synced 2024-11-09 17:34:04 +02:00
xue/kicad/modules/MLF20m1.fpd

128 lines
1.7 KiB
Plaintext
Raw Normal View History

2010-08-16 21:51:36 +03:00
/* MACHINE-GENERATED ! */
frame pad_e {
set name = Nx+ny+1
2010-08-17 05:35:01 +03:00
ce: vec @(Ox/2-Of, pos)
2010-08-16 21:51:36 +03:00
ll: vec .(0mil, Pw/2)
2010-08-17 05:35:01 +03:00
ur: vec .(-L, -Pw)
2010-08-16 21:51:36 +03:00
pad "$name" ll .
}
frame pad_w {
set name = 2*(Nx+Ny)-ny
2010-08-17 05:35:01 +03:00
cw: vec @(-Ox/2+Of, pos)
2010-08-16 21:51:36 +03:00
ll: vec .(0mil, Pw/2)
2010-08-17 05:35:01 +03:00
ur: vec .(L, -Pw)
2010-08-16 21:51:36 +03:00
pad "$name" ll .
}
frame pad_n {
set name = nx+1
2010-08-17 05:35:01 +03:00
nc: vec @(pos, Oy/2-Of)
2010-08-16 21:51:36 +03:00
ll: vec .(-Pw/2, 0mm)
2010-08-17 05:35:01 +03:00
ur: vec .(Pw, -L)
2010-08-16 21:51:36 +03:00
pad "$name" ll .
}
frame pad_s {
set name = 2*Nx+Ny-nx
2010-08-17 05:35:01 +03:00
sc: vec @(pos, -Oy/2+Of)
2010-08-16 21:51:36 +03:00
ll: vec .(-Pw/2, 0mm)
2010-08-17 05:35:01 +03:00
ur: vec .(Pw, L)
2010-08-16 21:51:36 +03:00
pad "$name" ll .
}
frame pads_y {
set pos = (Ny/2-ny-0.5)*e
loop ny = 0, Ny-1
frame pad_w @
frame pad_e @
}
frame pads_x {
set pos = (nx-Nx/2+0.5)*e
loop nx = 0, Nx-1
frame pad_s @
frame pad_n @
}
frame pads {
set Nx = 5
set Ny = 5
frame pads_x @
frame pads_y @
}
frame c_pad {
ll: vec @(-Cx/2, -Cy/2)
ur: vec @(Cx/2, Cy/2)
pad "PAD" ll .
}
frame center {
set Cx = 1.1mm
set Cy = 1.1mm
set Gx = 0.1mm
set Gy = 0.1mm
loop nx = 0, 1
loop ny = 0, 1
c: vec @((nx-0.5)*(Cx+Gx), (ny-0.5)*(Cy+Gy))
frame c_pad .
}
frame outline {
ll: vec @(-Ox/2, -Oy/2)
ur: vec @(Ox/2, Oy/2)
rect ll . silk
}
package "MLF20m1"
unit mm
set Ox = 4mm
set Oy = 4mm
set e = 0.5mm
set silk = 0.1mm
set Pw = 0.25mm
2010-08-17 05:35:01 +03:00
set L = 0.4mm
set Of = 0.05mm
2010-08-16 21:51:36 +03:00
__2: vec @(-2.2mm, 2.2mm)
__3: vec .(0.2mm, 0mm)
circ __2 . silk
frame outline @
frame center @
frame pads @
measx pad_n.ll >> pad_n.ur 100mil
measx pad_n.nc >> pad_n.nc 70mil
measx pad_n.nc -> pad_n.nc 40mil
measx c_pad.ur >> c_pad.ll Oy/2+40mil
measx outline.ll >> outline.ur Oy+130mil
measy pad_w.cw >> pad_w.cw 70mil
measy pad_w.ll -> pad_w.ur 40mil
2010-08-17 05:35:01 +03:00
measy pad_w.ur >> pad_w.ll 100mil+L
2010-08-16 21:51:36 +03:00
measy outline.ll >> outline.ur 130mil
measx c_pad.ll -> c_pad.ur -2mm
measy c_pad.ll -> c_pad.ur -4mm