Skip to content

Commit

Permalink
vinvoor: merge branch 'main' into vinvoor-heatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Jun 28, 2024
2 parents 632bfb0 + 2edb53a commit 060ac73
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 6 deletions.
41 changes: 35 additions & 6 deletions vinscant/3d/case.scad
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

$fn=50;
enclosure_inner_length = 100;
enclosure_inner_width = 45;
enclosure_inner_depth = 30;
enclosure_inner_width = 55;
enclosure_inner_depth = 45;

enclosure_thickness = 2;

cover_thickness = 2;

part = "both"; // [enclosure:Enclosure, cover:Cover, both:Enclosure and Cover]
part = "enclosure"; // [enclosure:Enclosure, cover:Cover, both:Enclosure and Cover]

print_part();

Expand Down Expand Up @@ -149,20 +149,49 @@ module lid2(in_x, in_y, in_z, shell, top_lip, top_thickness) {
[cxp-5, cym]]);

screws(in_x, in_y, in_z, shell);
hole("lid", 6.5/2, [cxp - 10, 0]);
// hole for 8x1 neopixel array
translate([enclosure_inner_length/2 - 10 - 5, -49/2, 0]) cube([5, 49, 100]);
}
}

module box2(in_x, in_y, in_z, shell, top_lip, top_thickness) {
bottom(in_x, in_y, in_z, shell);

// bottom plate, with 12 holes for magnets
difference() {
union() {
bottom(in_x, in_y, in_z, shell); // 2 mm bottom plate
for(x=[0, 1, 2, 3]) {
for (y=[-1, 0, 1]) {
translate([15*x-30+15/2, 15*y, 1]) {
cylinder(d=8.5+2*2, h=2.6);
}
}
}
}
union() {
for(x=[0, 1, 2, 3]) {
for (y=[-1, 0, 1]) {
translate([15*x-30+15/2, 15*y, 1]) {
cylinder(d=8.5, h=2);
}
}
}
}
}



difference() {
union() {
sides(in_x, in_y, in_z, shell);
lid_top_lip2(in_x, in_y, in_z, shell, top_lip, top_thickness);
}

screws(in_x, in_y, in_z, shell);
// hole for antenna
hole("length_1", 6.5/2, [0, 10]);

// slit for USB cable
offset = [0, enclosure_thickness+4.5/2];
assign (
rotate = [90,0,270],
Expand Down
16 changes: 16 additions & 0 deletions vinvoor/src/leaderboard/LeaderboardTableHead.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { TableCell, TableHead, TableRow, Typography } from "@mui/material";
import { leaderboardHeadCells } from "../types/leaderboard";

export const LeaderboardTableHead = () => {
return (
<TableHead>
<TableRow>
{leaderboardHeadCells.map((headCell) => (
<TableCell key={headCell.id} align={headCell.align}>
<Typography>{headCell.label}</Typography>
</TableCell>
))}
</TableRow>
</TableHead>
);
};

0 comments on commit 060ac73

Please sign in to comment.