combined.scad 943 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // ============================================================
  2. // Full Assembly — EE04 case + lid + epd_case + plungers
  3. // Replaces the old assembly view that lived in cpu_case.scad
  4. // ============================================================
  5. include <params.scad>
  6. use <cpu_case.scad>
  7. use <lid.scad>
  8. use <plunger.scad>
  9. /* [Preview] */
  10. SHOW_BASE = true;
  11. SHOW_LID = true;
  12. SHOW_BOARD = true;
  13. SHOW_PLUNGERS = true;
  14. SHOW_BATTERY = true;
  15. SHOW_DISP = true;
  16. EXPLODE = $t*75; // mm to pull lid out in Y- for inspection (try 40)
  17. module assembly() {
  18. if (SHOW_BASE) base();
  19. if ($preview && SHOW_BATTERY) battery();
  20. if (SHOW_LID)
  21. translate([0,
  22. WALL - EXPLODE,
  23. BASE_H - FLANGE_H])
  24. lid();
  25. if ($preview && SHOW_BOARD) stl_board();
  26. if (SHOW_PLUNGERS)
  27. for (bcx = BTN_CX)
  28. translate([PCB_OX + bcx, OUT_W - WALL, PCB_Z + BTN_CZ])
  29. plunger();
  30. }
  31. assembly();