Fix slots in vertical USB package to match oshpark requirements
authorKeith Packard <keithp@keithp.com>
Sun, 22 Nov 2015 01:06:49 +0000 (17:06 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 22 Nov 2015 01:06:49 +0000 (17:06 -0800)
oshpark wants two holes, one at either end, with copper painted around
them on both sides. I've done this by making round-end pads that go
from hole to hole. When you use this package, make sure you paint a
19.68mil trace in the outline layer between the holes; I can't see any
way to get that into the package.

Signed-off-by: Keith Packard <keithp@keithp.com>
packages/1051330011.5c

index 192925922bfae9e3e49670a26f02f48291d5bb20..97619a1d0767a9c18aeed8d51ddf08dc380f064c 100644 (file)
@@ -37,8 +37,8 @@ public void slot(real x, real y, real width, real drill) {
 
        pin_mm(x - width / 2, y, drill, pin_copper, "mnt", "mnt");
 
-       if (drill <= width/2)
-               pin_mm(x, y, drill, pin_copper, "mnt", "mnt");
+       pad_mm_options(x, y, width + pin_copper*2 + drill, drill + pin_copper * 2, "mnt", "mnt", "");
+       pad_mm_options(x, y, width + pin_copper*2 + drill, drill + pin_copper * 2, "mnt", "mnt", "onsolder");
 
        pin_mm(x + width / 2, y, drill, pin_copper, "mnt", "mnt");
 }