We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbb523c commit 41789bcCopy full SHA for 41789bc
arduino-mode.el
@@ -109,6 +109,15 @@ Each list item should be a regexp matching a single identifier." :group 'arduino
109
(easy-menu-define arduino-menu arduino-mode-map "Arduino Mode Commands"
110
(cons "Arduino" (c-lang-const c-mode-menu arduino)))
111
112
+(defun arduino-upload ()
113
+ "Upload a sketch to an Arduino board.
114
+
115
+You will need a suitable Makefile. See URL
116
+`http://mjo.tc/atelier/2009/02/arduino-cli.html'."
117
+ (interactive)
118
+ (make-local-variable 'compile-command)
119
+ (compile "make -k upload"))
120
121
;;;###autoload
122
(add-to-list 'auto-mode-alist '("\\.pde\\'" . arduino-mode))
123
0 commit comments