emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/arduino-mode 41789bc 006/107: Add convenience function ard


From: ELPA Syncer
Subject: [nongnu] elpa/arduino-mode 41789bc 006/107: Add convenience function arduino-upload to flash a chip.
Date: Sun, 29 Aug 2021 10:58:06 -0400 (EDT)

branch: elpa/arduino-mode
commit 41789bcdd88e171b198b112398dd14458d991717
Author: Peter Oliver <git@mavit.org.uk>
Commit: Peter Oliver <git@mavit.org.uk>

    Add convenience function arduino-upload to flash a chip.
---
 arduino-mode.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arduino-mode.el b/arduino-mode.el
index d6291b4..d3a6c50 100644
--- a/arduino-mode.el
+++ b/arduino-mode.el
@@ -109,6 +109,15 @@ Each list item should be a regexp matching a single 
identifier." :group 'arduino
 (easy-menu-define arduino-menu arduino-mode-map "Arduino Mode Commands"
                   (cons "Arduino" (c-lang-const c-mode-menu arduino)))
 
+(defun arduino-upload ()
+  "Upload a sketch to an Arduino board.
+
+You will need a suitable Makefile.  See URL
+`http://mjo.tc/atelier/2009/02/arduino-cli.html'."
+  (interactive)
+  (make-local-variable 'compile-command)
+  (compile "make -k upload"))
+
 ;;;###autoload
 (add-to-list 'auto-mode-alist '("\\.pde\\'" . arduino-mode))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]