Date:2012-06-10 01:09:36 (7 years 1 month ago)
Author:Werner Almesberger
Commit:86ce0c06e63c0bbf60ec4011e1543b2d2dfb553f
Message:modules/pads-array.fpd: like pads.fpd, but in a array formations (WIP)

For now, it only has the 2 mm pad with a 50 mil raster, suitable for
ribbon cables.
Files: modules/INFO (1 diff)
modules/Makefile (1 diff)
modules/pads-array.fpd (1 diff)

Change Details

modules/INFO
111111# Solder pads and test points
112112F: pads
113113
114# "pads" in typical array formations
115F: pads-array
116
114117# "Generic" simple QFN
115118F: qfn
116119#
modules/Makefile
11MODULES=8_10-card bat-clip-aa-th \
2        fiducial mini-usb pads qfn qfp sot sot-323 ssop stdpass \
2        fiducial mini-usb pads pads-array qfn qfp sot sot-323 ssop stdpass \
33        usb-a-pcb usb_a_plug_smt
44
55.SUFFIXES: .fpd .mod
modules/pads-array.fpd
1/* MACHINE-GENERATED ! */
2
3frame pad {
4    __0: vec @(x/2, y/2)
5    __1: vec @(-x/2, -y/2)
6    rpad "$n" . __0 bare
7}
8
9package "PAD_${name}_${N}x$e"
10unit mm
11
12table
13    { name, x, y }
14    { "2mm", 2mm, 0.5mm }
15    { "60x60", 60mil, 60mil }
16    { "80x80", 80mil, 80mil }
17    { "120x60", 120mil, 60mil }
18
19table
20    { ?name, e, N }
21    { "2mm", 50mil, 20 }
22    { "60x60", 0mm, 1 }
23    { "80x80", 0mm, 1 }
24    { "120x60", 0mm, 1 }
25
26loop n = 1, N
27
28__0: vec @(0mm, e*(n-1))
29frame pad .

Archive Download the corresponding diff file

Branches:
master



interactive