Skip to content

Instantly share code, notes, and snippets.

@fsmunoz
Created August 4, 2017 01:51
Show Gist options
  • Save fsmunoz/ef4a04c5f4eb117087a923d2555563af to your computer and use it in GitHub Desktop.
Save fsmunoz/ef4a04c5f4eb117087a923d2555563af to your computer and use it in GitHub Desktop.
Arduino Serial in Emacs
;; 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