add customizer_base. move settings variables to make more sense, in customizer and outside of it. switch (back?) to using rounded_cherry instead of cherry_rounded

This commit is contained in:
Robert Sheldon 2018-06-27 01:12:43 -04:00
parent 16b7ec4a25
commit ff77b6492c
9 changed files with 767 additions and 742 deletions

View file

@ -13,33 +13,6 @@ include <src/key_profiles.scad>
include <src/key_types.scad>
include <src/key_transformations.scad>
module translate_u(x=0, y=0, z=0){
translate([x * unit, y*unit, z*unit]) children();
}
// row 5 is commonly the top row, for whatever reason
key_profiles = ["dcs", "oem", "sa", "g20", "dsa"];
module one_single_key(profile, row, unsculpted) {
key_profile(profile, unsculpted ? 3 : row) cherry() key();
}
module one_row_profile(profile, unsculpted = false) {
rows = [5, 1, 2, 3, 4];
for(row = [0:len(rows)-1]) {
translate_u(0, -row) one_single_key(profile, rows[row], unsculpted);
}
}
for (p = [0:len(key_profiles)-1]) {
translate_u(p){
/* one_row_profile(key_profiles[p]); */
}
}
/* translate_u(0, 0) one_row_profile("oem"); */
/* dsa_row(3) u(1) uh(1) cherry() key(); */
translate_u(0, 0) sa_row(3) stepped_caps_lock() {
key();
}
@ -53,6 +26,3 @@ translate_u(0, 2) sa_row(1) spacebar() alps() {
$support_type = false;
key();
}
/* sculpted_square_shape([19,19], [0,0], 0.3);
translate([26,0,0]) rounded_square_shape([19,19], [0,0], 0.3); */