1
0
mirror of git://projects.qi-hardware.com/kicad-libs.git synced 2024-11-25 18:56:14 +02:00

modules/pads.fpd: add -NOSILK variants; add silk measurements for rectangular pads

This commit is contained in:
Werner Almesberger 2014-01-17 20:18:36 -03:00
parent 5bfda4d341
commit 76039af549
2 changed files with 57 additions and 19 deletions

View File

@ -5,20 +5,33 @@ Connector
Pads Pads
Round Round
PAD_C_1mm PAD_C_1mm
PAD_C_1mm-NOSILK
PAD_C_60x60 PAD_C_60x60
PAD_C_60x60-NOSILK
PAD_C_80x80 PAD_C_80x80
PAD_C_80x80-NOSILK
PAD_C_100x100 PAD_C_100x100
PAD_C_100x100-NOSILK
PAD_C_150x150 PAD_C_150x150
PAD_C_150x150-NOSILK
Square Square
PAD_S_1mm PAD_S_1mm
PAD_S_1mm-NOSILK
PAD_S_60x60 PAD_S_60x60
PAD_S_60x60-NOSILK
PAD_S_80x80 PAD_S_80x80
PAD_S_80x80-NOSILK
PAD_S_100x100 PAD_S_100x100
PAD_S_100x100-NOSILK
PAD_S_120x120 PAD_S_120x120
PAD_S_120x120-NOSILK
PAD_S_150x150 PAD_S_150x150
PAD_S_150x150-NOSILK
Rectangular Rectangular
PAD_R_2mm PAD_R_2mm
PAD_R_2mm-NOSILK
PAD_R_120x60 PAD_R_120x60
PAD_R_120x60-NOSILK
Array Array
2mm 2mm
PAD_2mm_2x50mil PAD_2mm_2x50mil

View File

@ -1,15 +1,33 @@
/* MACHINE-GENERATED ! */ /* MACHINE-GENERATED ! */
frame padS { frame padS_silk {
set ?type = "S"
set x1 = x/2+2.5*w set x1 = x/2+2.5*w
set y1 = y/2+2.5*w set y1 = y/2+2.5*w
set ?nosilk = ""
__2: vec @(-x1, y1)
__3: vec @(x1, -y1)
rect __2 . w
}
frame padS {
set ?type = "S"
__0: vec @(x/2, y/2) __0: vec @(x/2, y/2)
__1: vec @(-x/2, -y/2) __1: vec @(-x/2, -y/2)
pad "1" __0 . bare pad "1" __0 . bare
frame padS_silk @
}
frame padR_silk {
set x1 = x/2+2*w
set y1 = y/2+2*w
set ?nosilk = ""
__2: vec @(-x1, y1) __2: vec @(-x1, y1)
__3: vec @(x1, -y1) __3: vec @(x1, -y1)
rect __2 . w rect __2 . w
@ -18,34 +36,34 @@ frame padS {
frame padR { frame padR {
set ?type = "R" set ?type = "R"
set x1 = x/2+2*w
set y1 = y/2+2*w
__0: vec @(x/2, y/2) __0: vec @(x/2, y/2)
__1: vec @(-x/2, -y/2) __1: vec @(-x/2, -y/2)
rpad "1" . __0 bare rpad "1" . __0 bare
__2: vec @(-x1, y1) frame padR_silk @
__3: vec @(x1, -y1)
rect __2 . w
} }
frame padC { frame padC_silk {
set ?type = "C"
set x1 = (x+w)/2 set x1 = (x+w)/2
set y1 = (y+w)/2 set y1 = (y+w)/2
__0: vec @(x/2, y/2) set ?nosilk = ""
__1: vec @(-x/2, -y/2)
rpad "1" . __0 bare
__2: vec @(-x1, y1) __2: vec @(-x1, y1)
circ @ . w circ @ . w
__3: vec @(x1, -y1) __3: vec @(x1, -y1)
} }
package "PAD_${type}_$size" frame padC {
set ?type = "C"
__0: vec @(x/2, y/2)
__1: vec @(-x/2, -y/2)
rpad "1" . __0 bare
frame padC_silk @
}
package "PAD_${type}_$size$nosilk"
unit auto unit auto
table table
@ -68,12 +86,19 @@ set factor = 0.7
set w = 5mil set w = 5mil
table
{ nosilk }
{ "" }
{ "-NOSILK" }
frame padC @ frame padC @
frame padR @ frame padR @
frame padS @ frame padS @
measy padC.__1 >> padC.__0 y/2 measy padC.__1 >> padC.__0 y/2
measy padS.__1 >> padS.__0 1mm measy padS.__1 >> padS.__0 1mm
measx padS.__2 >> padS.__3 1mm measx padS_silk.__2 >> padS_silk.__3 1mm
measx padC.__2 >> padC.__3 1mm measx padC_silk.__2 >> padC_silk.__3 1mm
measy padR.__1 >> padR.__0 1mm measy padR.__1 >> padR.__0 1mm
measx padR.__1 >> padR.__0 -1mm measx padR.__1 >> padR.__0 -1mm
measx padR_silk.__2 >> padR_silk.__3 1mm
measy padR_silk.__3 >> padR_silk.__2 -1mm