idk that's better somehow
This commit is contained in:
parent
a5cf93b8d6
commit
d730208b81
1 changed files with 9 additions and 9 deletions
|
@ -240,6 +240,13 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
|
|||
cube([wall_width, case_length_bottom, wall_height], false);
|
||||
}
|
||||
|
||||
module keyboard_deck() {
|
||||
key_switch_footprint = [15.25, 15.25];
|
||||
|
||||
function add(v) = [for(p=v) 1]*v;
|
||||
function slice(v, x, y) = [for (i=[x:y]) v[i]];
|
||||
function addrange(v, x, y) = add(slice(v, x, y));
|
||||
|
||||
module screw_holes() {
|
||||
pcb_screw_diameter = 2.5;
|
||||
|
||||
|
@ -249,13 +256,6 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
|
|||
}
|
||||
}
|
||||
|
||||
module keyboard_deck() {
|
||||
key_switch_footprint = [15.25, 15.25];
|
||||
|
||||
function add(v) = [for(p=v) 1]*v;
|
||||
function slice(v, x, y) = [for (i=[x:y]) v[i]];
|
||||
function addrange(v, x, y) = add(slice(v, x, y));
|
||||
|
||||
module key_switch_plate(key_switch_size) {
|
||||
plate_width = keyboard_switch_width * key_switch_size;
|
||||
plate_length = keyboard_switch_length;
|
||||
|
|
Loading…
Add table
Reference in a new issue