Skip to content

Commit e37076c

Browse files
committed
More model sizes
1 parent b24fa4d commit e37076c

File tree

3 files changed

+80
-0
lines changed

3 files changed

+80
-0
lines changed

4x6.patch

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
diff --git a/src/dactyl_keyboard/dactyl.clj b/src/dactyl_keyboard/dactyl.clj
2+
index d8861fb..e58302f 100644
3+
--- a/src/dactyl_keyboard/dactyl.clj
4+
+++ b/src/dactyl_keyboard/dactyl.clj
5+
@@ -13,13 +13,13 @@
6+
;; Shape parameters ;;
7+
;;;;;;;;;;;;;;;;;;;;;;
8+
9+
-(def nrows 4)
10+
-(def ncols 5)
11+
+(def nrows 4)
12+
+(def ncols 6)
13+
14+
(def α (/ π 12)) ; curvature of the columns
15+
(def β (/ π 36)) ; curvature of the rows
16+
(def centerrow (- nrows 3)) ; controls front-back tilt
17+
-(def centercol 3) ; controls left-right tilt / tenting (higher number is more tenting)
18+
+(def centercol 2) ; controls left-right tilt / tenting (higher number is more tenting)
19+
(def tenting-angle (/ π 12)) ; or, change this for more precise tenting control
20+
(def column-style
21+
(if (> nrows 5) :orthographic :standard)) ; options include :standard, :orthographic, and :fixed
22+
@@ -32,7 +32,7 @@
23+
24+
(def thumb-offsets [6 -3 7])
25+
26+
-(def keyboard-z-offset 9) ; controls overall height; original=9 with centercol=3; use 16 for centercol=2
27+
+(def keyboard-z-offset 16) ; controls overall height; original=9 with centercol=3; use 16 for centercol=2
28+
29+
(def extra-width 2.5) ; extra space between the base of keys; original= 2
30+
(def extra-height 1.0) ; original= 0.5

6x6.patch

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
diff --git a/src/dactyl_keyboard/dactyl.clj b/src/dactyl_keyboard/dactyl.clj
2+
index d8861fb..e58302f 100644
3+
--- a/src/dactyl_keyboard/dactyl.clj
4+
+++ b/src/dactyl_keyboard/dactyl.clj
5+
@@ -13,13 +13,13 @@
6+
;; Shape parameters ;;
7+
;;;;;;;;;;;;;;;;;;;;;;
8+
9+
-(def nrows 4)
10+
-(def ncols 5)
11+
+(def nrows 6)
12+
+(def ncols 6)
13+
14+
(def α (/ π 12)) ; curvature of the columns
15+
(def β (/ π 36)) ; curvature of the rows
16+
(def centerrow (- nrows 3)) ; controls front-back tilt
17+
-(def centercol 3) ; controls left-right tilt / tenting (higher number is more tenting)
18+
+(def centercol 2) ; controls left-right tilt / tenting (higher number is more tenting)
19+
(def tenting-angle (/ π 12)) ; or, change this for more precise tenting control
20+
(def column-style
21+
(if (> nrows 5) :orthographic :standard)) ; options include :standard, :orthographic, and :fixed
22+
@@ -32,7 +32,7 @@
23+
24+
(def thumb-offsets [6 -3 7])
25+
26+
-(def keyboard-z-offset 9) ; controls overall height; original=9 with centercol=3; use 16 for centercol=2
27+
+(def keyboard-z-offset 16) ; controls overall height; original=9 with centercol=3; use 16 for centercol=2
28+
29+
(def extra-width 2.5) ; extra space between the base of keys; original= 2
30+
(def extra-height 1.0) ; original= 0.5

create-models.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ openscad -o things/right-4x5-plate.dxf things/right-4x5-plate.scad >/dev/null 2>
66
openscad -o things/right-4x5.stl things/right-4x5.scad >/dev/null 2>&1 &
77
openscad -o things/left-4x5.stl things/left-4x5.scad >/dev/null 2>&1 &
88

9+
patch -p1 < 4x6.patch
10+
lein run src/dactyl_keyboard/dactyl.clj
11+
cp things/right.scad things/right-4x6.scad
12+
cp things/left.scad things/left-4x6.scad
13+
cp things/right-plate.scad things/right-4x6-plate.scad
14+
openscad -o things/right-4x6-plate.dxf things/right-4x6-plate.scad >/dev/null 2>&1 &
15+
openscad -o things/right-4x6.stl things/right-4x6.scad >/dev/null 2>&1 &
16+
openscad -o things/left-4x6.stl things/left-4x6.scad >/dev/null 2>&1 &
17+
git checkout src/dactyl_keyboard/dactyl.clj
18+
919
patch -p1 < 5x6.patch
1020
lein run src/dactyl_keyboard/dactyl.clj
1121
cp things/right.scad things/right-5x6.scad
@@ -16,6 +26,16 @@ openscad -o things/right-5x6.stl things/right-5x6.scad >/dev/null 2>&1 &
1626
openscad -o things/left-5x6.stl things/left-5x6.scad >/dev/null 2>&1 &
1727
git checkout src/dactyl_keyboard/dactyl.clj
1828

29+
patch -p1 < 6x6.patch
30+
lein run src/dactyl_keyboard/dactyl.clj
31+
cp things/right.scad things/right-6x6.scad
32+
cp things/left.scad things/left-6x6.scad
33+
cp things/right-plate.scad things/right-6x6-plate.scad
34+
openscad -o things/right-6x6-plate.dxf things/right-6x6-plate.scad >/dev/null 2>&1 &
35+
openscad -o things/right-6x6.stl things/right-6x6.scad >/dev/null 2>&1 &
36+
openscad -o things/left-6x6.stl things/left-6x6.scad >/dev/null 2>&1 &
37+
git checkout src/dactyl_keyboard/dactyl.clj
38+
1939

2040
# git add things/*-4x5.stl
2141
# git add things/right-4x5-plate.dxf

0 commit comments

Comments
 (0)