From 84c21db8c23ad4595cd06bc79b40ded3c970a622 Mon Sep 17 00:00:00 2001 From: bobschlomboggi Date: Sat, 24 Aug 2024 08:51:36 -0500 Subject: [PATCH 1/2] updated key_layouts Added two new layouts: numpad and numpad_no_legends --- src/key_layouts.scad | 3 +++ 1 file changed, 3 insertions(+) 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 From a7bdd87b415fcc3f0a2207a57d2373a6f4a56aaf Mon Sep 17 00:00:00 2001 From: bobschlomboggi Date: Sat, 24 Aug 2024 08:53:56 -0500 Subject: [PATCH 2/2] Added numpad layouts Added layouts for numpad keyboards, with options for keys with and without legends. --- src/layouts/numpad/default.scad | 35 ++++++++++++++++++++++++++++++ src/layouts/numpad/no_legends.scad | 35 ++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 src/layouts/numpad/default.scad create mode 100644 src/layouts/numpad/no_legends.scad 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