diff --git a/src/key_layouts.scad b/src/key_layouts.scad index 10b5630..f1d058a 100644 --- a/src/key_layouts.scad +++ b/src/key_layouts.scad @@ -18,3 +18,6 @@ include include include + +include +include diff --git a/src/layouts/numpad/default.scad b/src/layouts/numpad/default.scad new file mode 100644 index 0000000..a536a51 --- /dev/null +++ b/src/layouts/numpad/default.scad @@ -0,0 +1,35 @@ +include <../layout.scad> + +/* The Plus and Enter keys will need to be added manually to the keys.scad file +Copy and paste the following two lines into keys.scad to add plus and enter, changing 'LAYOUT_ROW' to your chosen layout + +translate_u(x=3.5, y=-1.5, z=0) LAYOUT_ROW(1) legend("+", size=6) numpad_plus() key(); +translate_u(x=3.5, y=-3.5, z=0) LAYOUT_ROW(3) legend("⏎", size=6) numpad_enter() key(); + +Make sure you comment out/delete the 10u keys and their associated legends before exporting keys. +*/ + +numpad_default_layout = [ + [1,1,1,1], + [1,1,1,], + [1,1,1], + [1,1,1], + [2,1], + [], + [10], + [10] +]; + +numpad_legends = [ + ["№", "/", "*", "-"], + ["7", "8", "9"], + ["4", "5", "6"], + ["1", "2", "3"], + ["0", "."], + [], + ["CHECK NUMPAD_DEFAULT LAYOUT FILE"], + ["TO ADD NUMPAD PLUS AND ENTER"] +]; +module numpad_default(profile) { + layout(numpad_default_layout, profile, numpad_legends) children(); +} \ No newline at end of file diff --git a/src/layouts/numpad/no_legends.scad b/src/layouts/numpad/no_legends.scad new file mode 100644 index 0000000..50f17ca --- /dev/null +++ b/src/layouts/numpad/no_legends.scad @@ -0,0 +1,35 @@ +include <../layout.scad> + +/* The Plus and Enter keys will need to be added manually to the keys.scad file +Copy and paste the following two lines into keys.scad to add plus and enter, changing 'LAYOUT_ROW' to your chosen layout + +translate_u(x=3.5, y=-1.5, z=0) LAYOUT_ROW(1) numpad_plus() key(); +translate_u(x=3.5, y=-3.5, z=0) LAYOUT_ROW(3) numpad_enter() key(); + +Make sure you comment out/delete the 10u keys and their associated legends before exporting keys. +*/ + +numpad_no_legends_layout = [ + [1,1,1,1], + [1,1,1,], + [1,1,1], + [1,1,1], + [2,1], + [], + [10], + [10] +]; + +numpad_legends = [ + [], + [], + [], + [], + [], + [], + ["CHECK NUMPAD_NO_LEGENDS LAYOUT FILE"], + ["TO ADD NUMPAD PLUS AND ENTER"] +]; +module numpad_no_legends(profile) { + layout(numpad_default_layout, profile, numpad_legends) children(); +} \ No newline at end of file