Added numpad layouts

Added layouts for numpad keyboards, with options for keys with and without legends.
This commit is contained in:
bobschlomboggi 2024-08-24 08:53:56 -05:00 committed by GitHub
parent 84c21db8c2
commit a7bdd87b41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 70 additions and 0 deletions

View file

@ -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();
}

View file

@ -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();
}