1
0
mirror of git://projects.qi-hardware.com/kicad-libs.git synced 2024-11-22 08:51:53 +02:00

modules/pads-array.fpd: added measurements; enabled more pads types

We now also generate arrays of 2-10 60x60mil, 80x80mil, and 60x120mil
pads, all with a 100 mil spacing.
This commit is contained in:
Werner Almesberger 2012-07-13 23:01:03 -03:00
parent 8114d1d93f
commit 71075ec705
2 changed files with 58 additions and 23 deletions

View File

@ -19,25 +19,56 @@ Connector
PAD_R_120x60 PAD_R_120x60
PAD_S_150x150 PAD_S_150x150
Array Array
PAD_2mm_2x50mil 2mm
PAD_2mm_3x50mil PAD_2mm_2x50mil
PAD_2mm_4x50mil PAD_2mm_3x50mil
PAD_2mm_5x50mil PAD_2mm_4x50mil
PAD_2mm_6x50mil PAD_2mm_5x50mil
PAD_2mm_7x50mil PAD_2mm_6x50mil
PAD_2mm_8x50mil PAD_2mm_7x50mil
PAD_2mm_9x50mil PAD_2mm_8x50mil
PAD_2mm_10x50mil PAD_2mm_9x50mil
PAD_2mm_11x50mil PAD_2mm_10x50mil
PAD_2mm_12x50mil PAD_2mm_11x50mil
PAD_2mm_13x50mil PAD_2mm_12x50mil
PAD_2mm_14x50mil PAD_2mm_13x50mil
PAD_2mm_15x50mil PAD_2mm_14x50mil
PAD_2mm_16x50mil PAD_2mm_15x50mil
PAD_2mm_17x50mil PAD_2mm_16x50mil
PAD_2mm_18x50mil PAD_2mm_17x50mil
PAD_2mm_19x50mil PAD_2mm_18x50mil
PAD_2mm_20x50mil PAD_2mm_19x50mil
PAD_2mm_20x50mil
60x60mil
PAD_60x60_2x100mil
PAD_60x60_3x100mil
PAD_60x60_4x100mil
PAD_60x60_5x100mil
PAD_60x60_6x100mil
PAD_60x60_7x100mil
PAD_60x60_8x100mil
PAD_60x60_9x100mil
PAD_60x60_10x100mil
80x80mil
PAD_80x80_2x100mil
PAD_80x80_3x100mil
PAD_80x80_4x100mil
PAD_80x80_5x100mil
PAD_80x80_6x100mil
PAD_80x80_7x100mil
PAD_80x80_8x100mil
PAD_80x80_9x100mil
PAD_80x80_10x100mil
120x60mil
PAD_120x60_2x100mil
PAD_120x60_3x100mil
PAD_120x60_4x100mil
PAD_120x60_5x100mil
PAD_120x60_6x100mil
PAD_120x60_7x100mil
PAD_120x60_8x100mil
PAD_120x60_9x100mil
PAD_120x60_10x100mil
SMT SMT
8:10-SOCKET-RA 8:10-SOCKET-RA
miniUSB_B miniUSB_B

View File

@ -7,7 +7,7 @@ frame pad {
} }
package "PAD_${name}_${N}x$e" package "PAD_${name}_${N}x$e"
unit mm unit auto
table table
{ name, x, y } { name, x, y }
@ -19,9 +19,9 @@ table
table table
{ ?name, e, Nmax } { ?name, e, Nmax }
{ "2mm", 50mil, 20 } { "2mm", 50mil, 20 }
{ "60x60", 0mm, 1 } { "60x60", 100mil, 10 }
{ "80x80", 0mm, 1 } { "80x80", 100mil, 10 }
{ "120x60", 0mm, 1 } { "120x60", 100mil, 10 }
loop N = 2, Nmax loop N = 2, Nmax
@ -29,3 +29,7 @@ loop n = 1, N
__0: vec @(0mm, e*(n-1)) __0: vec @(0mm, e*(n-1))
frame pad . frame pad .
measx pad.__1 -> pad.__0 -1mm
measy pad.__1 -> pad.__0 1mm
measy __0 >> __0 -x/2-2mm
measy __0 -> __0 -x/2-1mm