summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Short <tshort.rlists@gmail.com>2017-04-02 17:31:59 -0400
committerTom Short <tshort.rlists@gmail.com>2017-04-02 17:31:59 -0400
commite37076c6d4077da0bedfd81d4afedd9f8c1f88b5 (patch)
tree50b1b1a2eeb0563db8c4f9ea56884af1f059f03f
parentb24fa4d8c4c660fb9bb0ac889e20a1c663c82923 (diff)
More model sizes
-rw-r--r--4x6.patch30
-rw-r--r--6x6.patch30
-rw-r--r--create-models.sh20
3 files changed, 80 insertions, 0 deletions
diff --git a/4x6.patch b/4x6.patch
new file mode 100644
index 0000000..76f079e
--- /dev/null
+++ b/4x6.patch
@@ -0,0 +1,30 @@
+diff --git a/src/dactyl_keyboard/dactyl.clj b/src/dactyl_keyboard/dactyl.clj
+index d8861fb..e58302f 100644
+--- a/src/dactyl_keyboard/dactyl.clj
++++ b/src/dactyl_keyboard/dactyl.clj
+@@ -13,13 +13,13 @@
+ ;; Shape parameters ;;
+ ;;;;;;;;;;;;;;;;;;;;;;
+
+-(def nrows 4)
+-(def ncols 5)
++(def nrows 4)
++(def ncols 6)
+
+ (def α (/ π 12)) ; curvature of the columns
+ (def β (/ π 36)) ; curvature of the rows
+ (def centerrow (- nrows 3)) ; controls front-back tilt
+-(def centercol 3) ; controls left-right tilt / tenting (higher number is more tenting)
++(def centercol 2) ; controls left-right tilt / tenting (higher number is more tenting)
+ (def tenting-angle (/ π 12)) ; or, change this for more precise tenting control
+ (def column-style
+ (if (> nrows 5) :orthographic :standard)) ; options include :standard, :orthographic, and :fixed
+@@ -32,7 +32,7 @@
+
+ (def thumb-offsets [6 -3 7])
+
+-(def keyboard-z-offset 9) ; controls overall height; original=9 with centercol=3; use 16 for centercol=2
++(def keyboard-z-offset 16) ; controls overall height; original=9 with centercol=3; use 16 for centercol=2
+
+ (def extra-width 2.5) ; extra space between the base of keys; original= 2
+ (def extra-height 1.0) ; original= 0.5
diff --git a/6x6.patch b/6x6.patch
new file mode 100644
index 0000000..d48e556
--- /dev/null
+++ b/6x6.patch
@@ -0,0 +1,30 @@
+diff --git a/src/dactyl_keyboard/dactyl.clj b/src/dactyl_keyboard/dactyl.clj
+index d8861fb..e58302f 100644
+--- a/src/dactyl_keyboard/dactyl.clj
++++ b/src/dactyl_keyboard/dactyl.clj
+@@ -13,13 +13,13 @@
+ ;; Shape parameters ;;
+ ;;;;;;;;;;;;;;;;;;;;;;
+
+-(def nrows 4)
+-(def ncols 5)
++(def nrows 6)
++(def ncols 6)
+
+ (def α (/ π 12)) ; curvature of the columns
+ (def β (/ π 36)) ; curvature of the rows
+ (def centerrow (- nrows 3)) ; controls front-back tilt
+-(def centercol 3) ; controls left-right tilt / tenting (higher number is more tenting)
++(def centercol 2) ; controls left-right tilt / tenting (higher number is more tenting)
+ (def tenting-angle (/ π 12)) ; or, change this for more precise tenting control
+ (def column-style
+ (if (> nrows 5) :orthographic :standard)) ; options include :standard, :orthographic, and :fixed
+@@ -32,7 +32,7 @@
+
+ (def thumb-offsets [6 -3 7])
+
+-(def keyboard-z-offset 9) ; controls overall height; original=9 with centercol=3; use 16 for centercol=2
++(def keyboard-z-offset 16) ; controls overall height; original=9 with centercol=3; use 16 for centercol=2
+
+ (def extra-width 2.5) ; extra space between the base of keys; original= 2
+ (def extra-height 1.0) ; original= 0.5
diff --git a/create-models.sh b/create-models.sh
index 3b856c6..a53c9dc 100644
--- a/create-models.sh
+++ b/create-models.sh
@@ -6,6 +6,16 @@ openscad -o things/right-4x5-plate.dxf things/right-4x5-plate.scad >/dev/null 2>
openscad -o things/right-4x5.stl things/right-4x5.scad >/dev/null 2>&1 &
openscad -o things/left-4x5.stl things/left-4x5.scad >/dev/null 2>&1 &
+patch -p1 < 4x6.patch
+lein run src/dactyl_keyboard/dactyl.clj
+cp things/right.scad things/right-4x6.scad
+cp things/left.scad things/left-4x6.scad
+cp things/right-plate.scad things/right-4x6-plate.scad
+openscad -o things/right-4x6-plate.dxf things/right-4x6-plate.scad >/dev/null 2>&1 &
+openscad -o things/right-4x6.stl things/right-4x6.scad >/dev/null 2>&1 &
+openscad -o things/left-4x6.stl things/left-4x6.scad >/dev/null 2>&1 &
+git checkout src/dactyl_keyboard/dactyl.clj
+
patch -p1 < 5x6.patch
lein run src/dactyl_keyboard/dactyl.clj
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 &
openscad -o things/left-5x6.stl things/left-5x6.scad >/dev/null 2>&1 &
git checkout src/dactyl_keyboard/dactyl.clj
+patch -p1 < 6x6.patch
+lein run src/dactyl_keyboard/dactyl.clj
+cp things/right.scad things/right-6x6.scad
+cp things/left.scad things/left-6x6.scad
+cp things/right-plate.scad things/right-6x6-plate.scad
+openscad -o things/right-6x6-plate.dxf things/right-6x6-plate.scad >/dev/null 2>&1 &
+openscad -o things/right-6x6.stl things/right-6x6.scad >/dev/null 2>&1 &
+openscad -o things/left-6x6.stl things/left-6x6.scad >/dev/null 2>&1 &
+git checkout src/dactyl_keyboard/dactyl.clj
+
# git add things/*-4x5.stl
# git add things/right-4x5-plate.dxf