From 6181fc5e2b12890421763977f63dd04fdb10b3e2 Mon Sep 17 00:00:00 2001 From: ede1998 Date: Sat, 29 Aug 2026 19:34:13 +0200 Subject: [PATCH] more accurate secondary display model --- model/common.scad | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/model/common.scad b/model/common.scad index 3f87d66..7326450 100644 --- a/model/common.scad +++ b/model/common.scad @@ -15,15 +15,27 @@ module pad() { cube([20, 20, 10]); } -module small_display_below_main() { +module secondary_display(pin_header = false) { // https://de.aliexpress.com/item/1005003753680706.html - cube([45.8, 20, 11.3]); - // old i2c variant: - //cube([43.5, 19.44, 4.5]); + length = 45.8; + width = 20; + height = 3.7; - // initial dimension ideas - // cube([38,16,4]); - // translate([150,0,0]) cube([22,5.5,4]); + pins_height = 11.3; + pins_width = 2.5; // width of socket, not pin + + hole_diameter = 2; + hole_inset = 1.5; + + difference() { + cube([length, width, height]) if (pin_header) + position(LEFT + FRONT) + cube([pins_width, width, pins_height]); + + move([length - hole_inset, width / 2, height / 2]) ycopies(width - (2 * hole_inset) - hole_diameter) { + cyl(d=hole_diameter, h=height + EPS, orient=UP, anchor=RIGHT); + } + } } module tertiary_display() {