load "footprint.5c"
import Footprint;
-Footprint::process_clearance = 0.07;
-
real pad_expose = 0.1;
real pad_width = 0.28;
real pad_height = 0.50;
element_start("s-pwson-n8");
/* full center pad */
-pad_mm_clear_mask_options(0, 0, center_width, center_height, 0, center_height + mask, "9", "9", "square,nopaste");
+pad_mm_partial(0, 0, center_width, center_height, 0.63, "9");
-/* 63% paste coverage */
-real paste_coverage = 0.63;
-real paste_coverage_scale = sqrt(paste_coverage);
-pad_mm_clear_mask_options(0, 0, center_width * paste_coverage_scale,
- center_height * paste_coverage_scale, 0, center_height + mask, "9", "9", "square");
+via_mm(-0.9, 0, process_drill, process_ring, "9");
+via_mm( 0.9, 0, process_drill, process_ring, "9");
real pad_y_off = pad_y_spacing / 2;
for (int pad = 0; pad < num_pad; pad++) {
/* bottom side (1-4) */
- pad_mm_clear_mask_options(pad_off(pad),
- pad_y_off,
- pad_width,
- pad_height,
- clearance * 2, pad_width + mask,
- sprintf("%d", pad + 1),
- sprintf("%d", pad + 1), "square");
+ pad_mm(pad_off(pad),
+ pad_y_off,
+ pad_width,
+ pad_height,
+ sprintf("%d", pad + 1),
+ sprintf("%d", pad + 1));
/* top side (8-5) */
- pad_mm_clear_mask_options(pad_off(pad),
- -pad_y_off,
- pad_width,
- pad_height,
- clearance * 2, pad_width + mask,
- sprintf("%d", 8 - pad),
- sprintf("%d", 8 - pad), "square");
-
+ pad_mm(pad_off(pad),
+ -pad_y_off,
+ pad_width,
+ pad_height,
+ sprintf("%d", 8 - pad),
+ sprintf("%d", 8 - pad));
}
rect(-package_width/2, -package_height/2, package_width, package_height);