aboutsummaryrefslogtreecommitdiffstats
path: root/oni/home/services
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-07-08 00:41:24 -0700
committerGravatar Tom Willemse2023-07-08 00:41:24 -0700
commit0563a1356717c8083fefa7bd3b08e41bafde40c4 (patch)
treed3cecff57192763b1ecc43a89d3558fd42071862 /oni/home/services
parentc9beaec472f153830b8f9fac31a710d629bd9b05 (diff)
downloadnew-dotfiles-0563a1356717c8083fefa7bd3b08e41bafde40c4.tar.gz
new-dotfiles-0563a1356717c8083fefa7bd3b08e41bafde40c4.zip
Remove Inkplate update code from Emacs init
This should now be done by the one-shot service I created.
Diffstat (limited to 'oni/home/services')
-rw-r--r--oni/home/services/emacs/init.el25
1 files changed, 0 insertions, 25 deletions
diff --git a/oni/home/services/emacs/init.el b/oni/home/services/emacs/init.el
index 629e029..87fb81c 100644
--- a/oni/home/services/emacs/init.el
+++ b/oni/home/services/emacs/init.el
@@ -50,31 +50,6 @@
(with-eval-after-load 'electric
(add-hook 'electric-quote-inhibit-functions #'oni-in-word-p))
-(add-to-list 'load-path (expand-file-name "~/projects/inkplate"))
-(when (require 'inkplate nil t)
- (let ((my-dev (inkplate-open "/dev/ttyUSB0")))
-
- (inkplate-clear-screen my-dev)
- (inkplate-set-cursor my-dev 280 100)
-
- (inkplate-set-text-size my-dev 10)
- (inkplate-print my-dev (inkplate--convert-string-to-hex (format-time-string "%Y")))
-
- (inkplate-set-cursor my-dev 275 180)
- (inkplate-set-text-size my-dev 8)
- (inkplate-print my-dev (inkplate--convert-string-to-hex (format-time-string "%m-%d")))
-
- (inkplate-draw-rectangle my-dev 270 90 250 155 3)
- (inkplate-draw-rectangle my-dev 269 89 252 157 3)
- (inkplate-draw-rectangle my-dev 268 88 254 159 3)
-
- (inkplate-partial-update my-dev)
- ;; It doesn't seem to update properly unless I send the same update twice.
- (inkplate-partial-update my-dev)
- (inkplate-send my-dev)
-
- (delete-process (inkplate-device-process my-dev))))
-
(setq custom-file "~/.config/emacs/custom.el")
(load custom-file)