From 9f797adb4d5dcd55dc1a112e0f1893e773d32c4d Mon Sep 17 00:00:00 2001
From: Jochen Vothknecht <jochen3120@gmail.com>
Date: Sat, 12 Mar 2022 23:41:25 +0100
Subject: [PATCH] Fully mocking LED terminals

---
 cad/CyanStripe/PCB.scad | 28 +++++++++++++++++++++-------
 1 file changed, 21 insertions(+), 7 deletions(-)

diff --git a/cad/CyanStripe/PCB.scad b/cad/CyanStripe/PCB.scad
index 583a789..e9751e1 100644
--- a/cad/CyanStripe/PCB.scad
+++ b/cad/CyanStripe/PCB.scad
@@ -26,9 +26,13 @@ function terminals_y() = 18.50;
 // tpow = power terminal
 function tpow_x()  = -30.25;
 function tpow_y()  =  14.50;
-function tpow_sx() =  11.00;
-function tpow_sy() =  11.50;
-function tpow_sz() =   3.00;  // TODO: measure!!
+// function tpow_sx() =  11.00;
+// function tpow_sy() =  11.50;
+// function tpow_sz() =   3.00;  // TODO: measure!!
+
+tled_y = [18.5, 0, -18.5];
+function tled_x() = 5.75 + 23;
+function tled_y(i) = tled_y(i);
 
 function sc_left_off() = 5.0;  // left side screw holes offset from edge
 
@@ -74,8 +78,19 @@ module pcb3D(pcb_t=pcb_t()) {
 //    Solder()
 //      translate([tpow_x(), tpow_y(), pcb_t() - $E])
 //        cube([tpow_sx(), tpow_sy(), tpow_sz()], center=true);
-    translate([tpow_x(), tpow_y(), pcb_t() - $E])
+//    translate([tpow_x(), tpow_y(), pcb_t() - $E])
+//      terminal2();
+
+
+    translate([tpow_x(), tpow_y(), pcb_t()])
       terminal2();
+
+    for (ty=tled_y)
+      translate([tled_x(), ty, pcb_t()])
+        rotate([0, 0, 180])
+          terminal3();
+
+
   }
 }
 
@@ -125,13 +140,12 @@ module terminal3() {
           roundRect(t_l_sx, t3_l_sy, 1.337, center=true);
     }
 
-    _ty = t3_sy * 1/4;
-    for (ty=[-_ty, _ty])
+    _ty = t3_sy * 1/3;
+    for (ty=[-_ty, 0, _ty])
       translate([-t3_sx/2, ty, t_h0/2])
         rotate([0, -90, 0])
           cylinder(d=3, h=8, center=true);
   }
 }
 
-translate([0, 0, pcb_t()]) terminal3();
 pcb3D();
-- 
GitLab