-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhackpad.scad
More file actions
67 lines (55 loc) · 1.48 KB
/
hackpad.scad
File metadata and controls
67 lines (55 loc) · 1.48 KB
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
// -----
// Components
// Comment/uncomment these when exporting for seperate files.
// -----
// render_case and render_plate are set by the openscad CLI.
if (render_case) {
case();
}
if (render_plate) {
plate();
}
// case();
// plate();
// -----
// Visualisations
// -----
// pcb_visualisation();
// -----
// Unique driving parameters
// -----
// Vertical stagger amount per column (mm)
columns = [0, 0,0,0,0,0];
// Width of each column (mm)
column_widths = [ 25, 19, 19, 19, 19, 19];
// Horizontal stagger amount per row (mm)
rows = [0,0,0,0,0];
// Height of each row (mm)
row_heights = [19,19,19,19,19];
// A list of every keyboard row and column with a key.
key_locations = [
// This loop generates a list containing every row (0-4, 5 total) for columns 1,2,3,4,5, and 6. (0-indexed)
for (i = [0:4]) each [[1, i], [2, i], [3, i], [4, i]]
];
// Location on the keyboard of peripherals.
// TODO: use absolute coordinates, or add offsets or something to this.
xiao_location = [0,4];
display_location = [0,0];
encoder_location = [-1,-1];
slider_location = [-1,-1];
// Height (mm) from the origin of the magnet connectors, and the trrs sockets.
trrs_left_y = 65.5;
trrs_right_y = 90;
magnet_left_y = 47.5;
magnet_right_y = 47.5;
// XY location (mm) of every screw hole. All screwholes are assumed to be M3 size.
screw_holes = [
[101,76], // H1
[116.25,19], // H2
[82,19], // H3
[44,38], // H4
[82,57], // H5
[44,76], // H6
[22.1,28.5], // H7
];
include <case.scad>;