From 973c0dd668ae58053b8f813c8779009f2f2d205a Mon Sep 17 00:00:00 2001 From: Torwag Date: Tue, 11 Feb 2014 04:48:31 -0800 Subject: [PATCH] Add emacs code --- Soft-reset.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Soft-reset.md b/Soft-reset.md index 4d00b6b..f296152 100644 --- a/Soft-reset.md +++ b/Soft-reset.md @@ -27,6 +27,7 @@ Several IDEs and Editors allow to customize shortkeys to execute arbitrary code. Add this somewhere in your emacs init (e.g. ~/.emacs.d/init.el). Adapt the serial device name if necessary. Now press `Ctrl-F5` within Emacs whenever you wish to soft-reset the controller. +``` (defun restart_micropython () " Restart Micropython-Board" (interactive) @@ -35,3 +36,4 @@ Add this somewhere in your emacs init (e.g. ~/.emacs.d/init.el). Adapt the seria ) ;; Set a global key to initiate soft reset (customize as desired) (global-set-key (kbd "C-") 'restart_micropython) +```