Skip to content

Commit c8618fa

Browse files
committed
Move Teensy holder away from edge
1 parent d8f163e commit c8618fa

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

src/dactyl_keyboard/dactyl.clj

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
;; Shape parameters ;;
1414
;;;;;;;;;;;;;;;;;;;;;;
1515

16-
(def nrows 4)
17-
(def ncols 5)
16+
(def nrows 5)
17+
(def ncols 6)
1818

1919
(def α (/ π 12)) ; curvature of the columns
2020
(def β (/ π 36)) ; curvature of the rows
@@ -596,18 +596,16 @@
596596
(def teensy-height 12)
597597
(def teensy-length 33)
598598
(def teensy2-length 53)
599-
(def teensy-pcb-thickness 1.6)
599+
(def teensy-pcb-thickness 2)
600600
(def teensy-holder-width (+ 7 teensy-pcb-thickness))
601601
(def teensy-holder-height (+ 6 teensy-width))
602602
(def teensy-offset-height 5)
603-
(def teensy-holder-length 72)
604-
(def teensy-holder-offset (/ teensy-holder-length -2))
605603
(def teensy-holder-top-length 18)
606-
(def teensy-top-xy (key-position 0 0 (map + (wall-locate3 0 1) [(/ mount-width -2) (/ mount-height 2) 0])))
607-
(def teensy-bot-xy (map + (key-position 0 2 (map + (wall-locate3 -1 0) [(/ mount-width -2) (/ mount-height 2) 0]))
608-
[(* 1 teensy-holder-width) 0 0]))
609-
(def teensy-holder-top-offset (/ teensy-holder-top-length -2))
610-
(def teensy-holder-angle (Math/atan2 (- (first teensy-top-xy) (first teensy-bot-xy)) (- (second teensy-top-xy) (second teensy-bot-xy))))
604+
(def teensy-top-xy (key-position 0 (- centerrow 1) (wall-locate3 -1 0)))
605+
(def teensy-bot-xy (key-position 0 (+ centerrow 1) (wall-locate3 -1 0)))
606+
(def teensy-holder-length (- (second teensy-top-xy) (second teensy-bot-xy)))
607+
(def teensy-holder-offset (/ teensy-holder-length -2))
608+
(def teensy-holder-top-offset (- (/ teensy-holder-top-length 2) teensy-holder-length))
611609

612610
(def teensy-holder
613611
(->>
@@ -621,11 +619,9 @@
621619
(->> (cube teensy-pcb-thickness teensy-holder-top-length 3)
622620
(translate [(+ (/ teensy-pcb-thickness 2) 3) teensy-holder-top-offset (+ 1.5 (/ teensy-width 2))]))
623621
(->> (cube 4 teensy-holder-top-length 4)
624-
(translate [(+ teensy-pcb-thickness 5) teensy-holder-top-offset (+ 1 (/ teensy-width 2))]))
625-
(->> (cube teensy-holder-width 2 teensy-holder-height)
626-
(translate [(+ (/ teensy-holder-width 2)) -1 0])))
622+
(translate [(+ teensy-pcb-thickness 5) teensy-holder-top-offset (+ 1 (/ teensy-width 2))])))
627623
(translate [(- teensy-holder-width) 0 0])
628-
(rotate teensy-holder-angle [0 0 -1])
624+
(translate [(- 1) 0 0])
629625
(translate [(first teensy-top-xy)
630626
(- (second teensy-top-xy) 1)
631627
(/ (+ 6 teensy-width) 2)])
@@ -634,7 +630,6 @@
634630
(def usb-cutout
635631
(->> (cube 8 30 12)
636632
(translate [-4 -5 0])
637-
(rotate teensy-holder-angle [0 0 -1])
638633
(translate [(+ (first teensy-top-xy) 3)
639634
(+ (second teensy-top-xy) 0)
640635
(/ teensy-holder-height 2)])
@@ -643,7 +638,6 @@
643638
(def teensy-holder-hole
644639
(->> (cube teensy-holder-width 30 teensy-holder-height)
645640
(translate [(/ teensy-holder-width -2) -15 (/ teensy-holder-height 2)])
646-
(rotate teensy-holder-angle [0 0 -1])
647641
(translate [(first teensy-top-xy)
648642
(- (second teensy-top-xy) 1)
649643
0])))
@@ -686,7 +680,6 @@
686680
(->> shape
687681
(rotate (/ π 2) [0 -1 0])
688682
(translate [(- 3 teensy-holder-width (/ screw-insert-height 2)) (- (+ length 7)) 0])
689-
(rotate teensy-holder-angle [0 0 -1])
690683
(translate [(first teensy-top-xy) (second teensy-top-xy) 15])
691684
)))
692685

@@ -763,7 +756,8 @@
763756
case-walls
764757
thumbcaps
765758
caps
766-
; teensy-holder
759+
teensy-holder
760+
rj9-holder
767761
; ; teensy-holder-hole
768762
; screw-insert-outers
769763
; teensy-screw-insert-holes

0 commit comments

Comments
 (0)