-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathugame-10.scad
88 lines (79 loc) · 3.04 KB
/
ugame-10.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
$fs = 0.125;
module pcb() {
color("cornsilk") difference() {
hull() {
translate([2, 2, 0]) cylinder(1.4, 2, 2);
translate([2, 50 - 2, 0]) cylinder(1.4, 2, 2);
translate([42 - 2, 50 - 2, 0]) cylinder(1.4, 2, 2);
translate([42 - 2, 2, 0]) cylinder(1.4, 2, 2);
}
translate([3.1, 3, -1]) cylinder(4, 1.3, 1.3);
translate([42 - 3.1, 3, -1]) cylinder(4, 1.3, 1.3);
translate([3.1, 46.8, -1]) cylinder(4, 1.3, 1.3);
translate([42 - 3.1, 46.8, -1]) cylinder(4, 1.3, 1.3);
translate([35, 48, -1]) cylinder(4, 0.5, 0.5);
translate([29.8, 48, -1]) cylinder(4, 0.5, 0.5);
translate([26.75, 22.75, -1]) cylinder(4, 0.5, 0.5);
translate([26.75 - 2.54, 22.75, -1]) cylinder(4, 0.5, 0.5);
translate([26.75 - 2.54 * 2, 22.75, -1]) cylinder(4, 0.5, 0.5);
translate([26.75 - 2.54 * 3, 22.75, -1]) cylinder(4, 0.5, 0.5);
translate([40.6, 6.8, -1]) cylinder(4, 0.5, 0.5);
translate([40.6, 6.8 + 1.27 * 3, -1]) cylinder(4, 0.5, 0.5);
translate([40.6, 6.8 + 1.27 * 6, -1]) cylinder(4, 0.5, 0.5);
translate([40.6, 6.8 + 1.27 * 9, -1]) cylinder(4, 0.5, 0.5);
}
}
module skpmape010() {
translate([0, 0, 1.75]) color("dimgray") {
intersection() {
cube([6, 5.9, 3.5], center=true);
rotate(45) cube([6.7, 6.7, 3.5], center=true);
}
translate([0, 0, 1.3]) intersection() {
cube([5, 5, 3.5], center=true);
rotate(45) cube([5.7, 5.7, 3.5], center=true);
}
}
color("silver") translate([0, 0, 1.1]) cube([2, 6.6, 2], center=true);
}
module st7735s() {
difference() {
color("aliceblue") cube([29.5, 36.5, 2.5]);
color("black") translate([2, 2.56, 2]) cube([25.5, 26.5, 1]);
}
}
module mk12c02() {
difference() {
color("lightsteelblue") cube([2.7, 6.6, 1.4]);
color("black") translate([-0.1, 2, 0.5]) cube([0.2, 2.8, 0.5]);
}
color("gray") translate([-1.5, 2.7, 0.05]) cube([2, 1.3, 1.3]);
}
module det402g1() {
color("lightsteelblue") cube([3, 4.5, 1.9]);
}
module reset() {
color("lightsteelblue") cube([3, 4, 1.5]);
color("black") translate([1.5, 2, 0.5]) cylinder(1.5, 1, 1);
}
module microusb() {
color("lightsteelblue") translate([0, 0, 1.175]) rotate([90, 0, 0]) hull() {
translate([-2.325, 0 ,0]) cylinder(5, 1.175, 1.175);
translate([2.325, 0, 0]) cylinder(5, 1.175, 1.175);
}
}
module ugame() {
pcb();
translate([3.1, 10, 1.5]) skpmape010();
translate([14.6, 10, 1.5]) skpmape010();
translate([3.1 + (14.6 - 3.1) / 2, 4.4, 1.5]) skpmape010();
translate([3.1 + (14.6 - 3.1) / 2, 15.6, 1.5]) skpmape010();
translate([34.3, 6.8, 1.5]) skpmape010();
translate([38.75, 15.6, 1.5]) skpmape010();
translate([4, 49.5, 1.5]) rotate(-90) st7735s();
translate([0.1, 36.6, 1.5]) mk12c02();
translate([21.05, 3.5, 1.5]) microusb();
translate([0.5, 29.6, 1.5]) det402g1();
translate([16.6, 16, 1.5]) rotate(90) reset();
}
ugame();