From 2d20ad4b09fc4d461691383a5c1fd6d11cdce79e Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 21 Aug 2020 09:33:37 +0100 Subject: factor standard-spacing vias --- 3d-print/controller.scad | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to '3d-print/controller.scad') diff --git a/3d-print/controller.scad b/3d-print/controller.scad index 585f19b..1b084d6 100644 --- a/3d-print/controller.scad +++ b/3d-print/controller.scad @@ -2,20 +2,22 @@ module via() { cylinder(h=10,r=0.5,center=true,$fn=12); } +module vias100mil(count) { + for(i=[0 : count-1]) { + translate([0,2.54*i,0]) via(); + } +} + // TTGO T7 module esp32() { for(x=[0, 1, 10, 11]) { - for(y=[0 : 9]) { - translate([2.54*x,2.54*y,0]) via(); - } + translate([2.54*x,0,0]) vias100mil(10); } } // https://learn.adafruit.com/stereo-3-7w-class-d-audio-amplifier/assembly module amp() { - for(x=[0 : 8]) { - translate([0,2.54*x,0]) via(); - } + vias100mil(9); } module wire_pack() { -- cgit v1.2.3