summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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})