diff --git a/notebook_nueva/hdmi_out.py b/notebook_nueva/hdmi_out.py new file mode 100644 index 0000000..dc19fd1 --- /dev/null +++ b/notebook_nueva/hdmi_out.py @@ -0,0 +1,47 @@ +# Hole to expose a USB audio card (YMMV) + +import cadquery as cq + +from utils import punch_hole + +# The hole is for a random USB sound card. +# Consumers should set proper offsets for the hole + +holes = [ + # Hole for HDMI female adapter + { + "x": 0, + "y": 7, + "shape": cq.Sketch().trapezoid(22, 12.5, 90, mode="a").fillet(2), + }, +] + + +def add( + *, + model, + width, + height, + thickness, + offset_x, + offset_y, + bottom_face, + back_face, + shell_t +): + + # Holes + if back_face: + for hole in holes: + model = punch_hole( + model=model, + face=back_face, + w=width, + h=thickness, + x_offset=width - offset_x, + y_offset=shell_t, + hole=hole, + depth=shell_t, + ) + + return model diff --git a/notebook_nueva/left_side.stl b/notebook_nueva/left_side.stl index 022c4da..f4d318d 100644 Binary files a/notebook_nueva/left_side.stl and b/notebook_nueva/left_side.stl differ diff --git a/notebook_nueva/model.stl b/notebook_nueva/model.stl index f76c00b..0324b1e 100644 Binary files a/notebook_nueva/model.stl and b/notebook_nueva/model.stl differ diff --git a/notebook_nueva/modelo.py b/notebook_nueva/modelo.py index 3025f3b..84cad54 100644 --- a/notebook_nueva/modelo.py +++ b/notebook_nueva/modelo.py @@ -3,10 +3,11 @@ from cadquery import exporters import audio_plug import battery_holder +import hdmi_out +import keyboard +import screen_pillars import usb_hub import zero_holder as cpu_holder -import screen_pillars -import keyboard # Base for the notebook. Basically a kbd base that extends back # as much as possible @@ -102,6 +103,19 @@ def model(): shell_t=shell_t, ) + # Hole for HDMI out in the back + model = hdmi_out.add( + model=model, + width=width, + height=height, + thickness=thickness, + offset_x=138, + offset_y=0, + bottom_face=None, + back_face=">Y", + shell_t=shell_t, + ) + model = cpu_holder.add( model=model, width=width,