Added hole for HDMI out

This commit is contained in:
Roberto Alsina 2023-03-30 10:24:33 -03:00
parent f1521523e6
commit d5f4a1f358
4 changed files with 63 additions and 2 deletions

View File

@ -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

Binary file not shown.

Binary file not shown.

View File

@ -3,10 +3,11 @@ from cadquery import exporters
import audio_plug import audio_plug
import battery_holder import battery_holder
import hdmi_out
import keyboard
import screen_pillars
import usb_hub import usb_hub
import zero_holder as cpu_holder import zero_holder as cpu_holder
import screen_pillars
import keyboard
# Base for the notebook. Basically a kbd base that extends back # Base for the notebook. Basically a kbd base that extends back
# as much as possible # as much as possible
@ -102,6 +103,19 @@ def model():
shell_t=shell_t, 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 = cpu_holder.add(
model=model, model=model,
width=width, width=width,