summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-12-03 12:19:11 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2017-12-03 12:19:11 +0100
commit6c37512799d98b4e458852cf60ff7784c3f2d28c (patch)
treef197abb87a060d0476ff95ebcccce15f3f163d97
parentf650fdecff9bccd6ddfb1c1c7eb788b8fabc0859 (diff)
downloadIPC-7351-footprints-generator-6c37512799d98b4e458852cf60ff7784c3f2d28c.tar.gz
IPC-7351-footprints-generator-6c37512799d98b4e458852cf60ff7784c3f2d28c.tar.bz2
IPC-7351-footprints-generator-6c37512799d98b4e458852cf60ff7784c3f2d28c.tar.xz
IPC-7351-footprints-generator-6c37512799d98b4e458852cf60ff7784c3f2d28c.zip
o Adding 135 height for CAPC2012.
-rw-r--r--IPC-7351-CAPC.pretty/CAPC_2012x135.kicad_mod31
-rwxr-xr-xgen6
2 files changed, 34 insertions, 3 deletions
diff --git a/IPC-7351-CAPC.pretty/CAPC_2012x135.kicad_mod b/IPC-7351-CAPC.pretty/CAPC_2012x135.kicad_mod
new file mode 100644
index 0000000..0765091
--- /dev/null
+++ b/IPC-7351-CAPC.pretty/CAPC_2012x135.kicad_mod
@@ -0,0 +1,31 @@
+(module CAPC_2012x135 (layer F.Cu) (tedit 5A2018AF)
+ (attr smd)
+ (fp_text reference REF** (at 0 -0.3) (layer F.Fab)
+ (effects (font (size 0.24 0.24) (thickness 0.036)))
+ )
+ (fp_text value VAL** (at 0 0.3) (layer F.Fab)
+ (effects (font (size 0.24 0.24) (thickness 0.036)))
+ )
+
+ (fp_text user %R (at 0 -0.3) (layer "F.SilkS")
+ (effects (font (size 0.7 0.7) (thickness 0.1)))
+ )
+ (fp_text user %V (at 0 0.3) (layer "F.SilkS")
+ (effects (font (size 0.7 0.7) (thickness 0.1)))
+ )
+
+
+ (fp_line (start -1.0 -0.6) (end 1.0 -0.6) (layer F.Fab) (width 0.05))
+ (fp_line (start 1.0 -0.6) (end 1.0 0.6) (layer F.Fab) (width 0.05))
+ (fp_line (start 1.0 0.6) (end -1.0 0.6) (layer F.Fab) (width 0.05))
+ (fp_line (start -1.0 0.6) (end -1.0 -0.6) (layer F.Fab) (width 0.05))
+
+
+ (fp_line (start -2.0 -1.0) (end 2.0 -1.0) (layer F.CrtYd) (width 0.05))
+ (fp_line (start 2.0 -1.0) (end 2.0 1.0) (layer F.CrtYd) (width 0.05))
+ (fp_line (start 2.0 1.0) (end -2.0 1.0) (layer F.CrtYd) (width 0.05))
+ (fp_line (start -2.0 1.0) (end -2.0 -1.0) (layer F.CrtYd) (width 0.05))
+
+ (pad 1 smd rect (at -0.95 0) (size 1.3 1.5) (layers F.Cu F.Paste F.Mask))
+ (pad 2 smd rect (at 0.95 0) (size 1.3 1.5) (layers F.Cu F.Paste F.Mask))
+) \ No newline at end of file
diff --git a/gen b/gen
index c027b36..ca56e15 100755
--- a/gen
+++ b/gen
@@ -28,7 +28,7 @@ resc_heights = {
capc_heights = {
"1005": [15, 35, 37, 40],
"1608": [40],
- "2012": [40],
+ "2012": [40, 135],
"3216": [40],
"3225": [40],
"5025": [40],
@@ -107,7 +107,7 @@ resc_lp = [ChipLandPattern.from_ipc(p) for p in ipc_sm_782.data["resc"]["land_pa
capc_lp = [ChipLandPattern.from_ipc(p) for p in ipc_sm_782.data["capc"]["land_patterns"]]
-for kind, lps in {"RESC": resc_lp, "CAPC": capc_lp}.items():
+for (kind, lps, heights) in [("RESC", resc_lp, resc_heights), ("CAPC", capc_lp, capc_heights)]:
basedir = "IPC-7351-{}.pretty".format(kind)
if not os.path.isdir(basedir):
os.mkdir(basedir)
@@ -115,7 +115,7 @@ for kind, lps in {"RESC": resc_lp, "CAPC": capc_lp}.items():
# print("{}_{}".format(kind, lp.key))
# print("lp={}".format(lp))
# print("lp={}".format(lp.size_x / 8))
- for h in resc_heights.get(lp.key, []):
+ for h in heights.get(lp.key, []):
key = "{}_{}x{:02}".format(kind, lp.key, h)
# print(" " + key)
kicad_mod = chip.render({"lp": lp, "key": key, "h": h})