Fixed keys
This commit is contained in:
@@ -3,9 +3,10 @@
|
|||||||
distance_from_key_to_enclosure = 6;
|
distance_from_key_to_enclosure = 6;
|
||||||
enclosure_hole_depth = 6;
|
enclosure_hole_depth = 6;
|
||||||
button_height_above_enclosure_surface = 4;
|
button_height_above_enclosure_surface = 4;
|
||||||
|
stopper_flange_height = 2;
|
||||||
|
symbol_height = 1;
|
||||||
|
|
||||||
module keycap() {
|
module keycap() {
|
||||||
stopper_flange_height = 2;
|
|
||||||
// Keycap
|
// Keycap
|
||||||
cylinder(h = enclosure_hole_depth + stopper_flange_height + button_height_above_enclosure_surface, d = 18, $fn = 128);
|
cylinder(h = enclosure_hole_depth + stopper_flange_height + button_height_above_enclosure_surface, d = 18, $fn = 128);
|
||||||
// Stopper flange
|
// Stopper flange
|
||||||
@@ -14,24 +15,34 @@ module keycap() {
|
|||||||
stem_height = distance_from_key_to_enclosure - stopper_flange_height;
|
stem_height = distance_from_key_to_enclosure - stopper_flange_height;
|
||||||
translate([0, 0, -stem_height / 2]){
|
translate([0, 0, -stem_height / 2]){
|
||||||
difference() {
|
difference() {
|
||||||
cube([5, 3.89, stem_height], true);
|
cube([6.4, 4.4, stem_height], true);
|
||||||
cube([1, 3.9, stem_height + 0.1], true);
|
cube([1.2, 4.5, stem_height + 0.1], true);
|
||||||
cube([3.9, 1, stem_height + 0.1], true);
|
cube([4.5, 1.4, stem_height + 0.1], true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module next_keycap() {
|
module next_keycap() {
|
||||||
keycap();
|
keycap();
|
||||||
|
translate([0, 0, enclosure_hole_depth + stopper_flange_height + button_height_above_enclosure_surface - 0.1]) cylinder(h = symbol_height, d = 12, $fn = 3);
|
||||||
}
|
}
|
||||||
module prev_keycap() {
|
module prev_keycap() {
|
||||||
keycap();
|
keycap();
|
||||||
|
rotate([0, 0, 180]) translate([0, 0, enclosure_hole_depth + stopper_flange_height + button_height_above_enclosure_surface - 0.1]) cylinder(h = symbol_height, d = 12, $fn = 3);
|
||||||
}
|
}
|
||||||
module vol_up_keycap() {
|
module vol_up_keycap() {
|
||||||
keycap();
|
keycap();
|
||||||
|
translate([0, 0, enclosure_hole_depth + stopper_flange_height + button_height_above_enclosure_surface - 0.1]) cylinder(h = symbol_height, d = 12, $fn = 5);
|
||||||
}
|
}
|
||||||
module vol_down_keycap() {
|
module vol_down_keycap() {
|
||||||
keycap();
|
keycap();
|
||||||
|
translate([0, 0, enclosure_hole_depth + stopper_flange_height + button_height_above_enclosure_surface - 0.1]) cylinder(h = symbol_height, d = 6, $fn = 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//keycap();
|
||||||
|
|
||||||
|
// Stem only:
|
||||||
|
intersection() {
|
||||||
keycap();
|
keycap();
|
||||||
|
translate([0, 0, -1.5]) cube([8, 6, 5], true);
|
||||||
|
}
|
||||||
4
enclosure/printables/buttons_track.scad
Normal file
4
enclosure/printables/buttons_track.scad
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
use <../keys.scad>
|
||||||
|
|
||||||
|
translate([20, 0, 0]) next_keycap();
|
||||||
|
translate([-20, 0, 0]) prev_keycap();
|
||||||
4
enclosure/printables/buttons_vol.scad
Normal file
4
enclosure/printables/buttons_vol.scad
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
use <../keys.scad>
|
||||||
|
|
||||||
|
translate([20, 0, 0]) vol_up_keycap();
|
||||||
|
translate([-20, 0, 0]) vol_down_keycap();
|
||||||
Reference in New Issue
Block a user