aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2020-08-21 09:33:37 +0100
committerdakkar <dakkar@thenautilus.net>2020-08-21 09:33:37 +0100
commit2d20ad4b09fc4d461691383a5c1fd6d11cdce79e (patch)
tree64161fc5227204d3780f197c001778317f3252ce
parentfactor resistors bank (diff)
downloadlego-piano-2d20ad4b09fc4d461691383a5c1fd6d11cdce79e.tar.gz
lego-piano-2d20ad4b09fc4d461691383a5c1fd6d11cdce79e.tar.bz2
lego-piano-2d20ad4b09fc4d461691383a5c1fd6d11cdce79e.zip
factor standard-spacing vias
-rw-r--r--3d-print/controller.scad14
1 files changed, 8 insertions, 6 deletions
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() {