Created
August 4, 2017 01:51
-
-
Save fsmunoz/ef4a04c5f4eb117087a923d2555563af to your computer and use it in GitHub Desktop.
Arduino Serial in Emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Open serial connection with an Arduino | |
;; | |
;; 2017, Frederico Munoz <[email protected]> | |
;; Serial port definitions | |
(defvar port "/dev/ttyACM1" "Serial port") | |
(defvar bauds 9600 "Bps") | |
(let ((serial-buffer (serial-term port bauds))) | |
(with-current-buffer | |
(rename-buffer "*inferior-lisp*") | |
(term-line-mode) | |
(setq inferior-lisp-buffer serial-buffer))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment