[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/arduino-mode 3d8aa47 045/107: improve and add some command
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/arduino-mode 3d8aa47 045/107: improve and add some commands for command-line arduino. |
Date: |
Sun, 29 Aug 2021 10:58:14 -0400 (EDT) |
branch: elpa/arduino-mode
commit 3d8aa47c3f66536bcd53e2357dec795023cea5d9
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
improve and add some commands for command-line arduino.
- don't use Makefile to uploading now. use action --upload.
- add command arduino-verify for action --verify.
- rename open with Arduino IDE command name.
---
arduino-mode.el | 54 ++++++++++++++----------------------------------------
1 file changed, 14 insertions(+), 40 deletions(-)
diff --git a/arduino-mode.el b/arduino-mode.el
index 064650b..9184118 100644
--- a/arduino-mode.el
+++ b/arduino-mode.el
@@ -176,44 +176,23 @@ Each list item should be a regexp matching a single
identifier."
(easy-menu-add-item arduino-menu
nil ["Serial monitor" arduino-serial-monitor t])
-(defcustom arduino-makefile-name "Makefile"
- "Name of Makefile used to compile and upload Arduino sketches."
- :type 'string
- :group 'arduino)
-
(defun arduino-upload ()
- "Upload the sketch to an Arduino board.
+ "Upload the sketch to an Arduino board."
+ (interactive)
+ (start-file-process
+ "arduino-upload" "*arduino-upload*" arduino-executable "--upload"
(buffer-file-name)))
-You will need a suitable Makefile. See URL
-`http://mjo.tc/atelier/2009/02/arduino-cli.html'."
+(defun arduino-verify ()
+ "Verify the sketch."
(interactive)
- (if (file-exists-p arduino-makefile-name)
- (progn
- (make-local-variable 'compile-command)
- (compile (concat "make -f " arduino-makefile-name " -k upload")))
- (if (y-or-n-p (concat "No Makefile `" arduino-makefile-name
- "' exists. Create it? "))
- (let ((arduino-project-name
- (file-name-nondirectory
- (file-name-sans-extension (buffer-file-name)))))
- (find-file-other-window arduino-makefile-name)
- (insert "# Customise the following values as required:
-
-TARGET = " arduino-project-name "
-ARDUINO_LIBS =
-
-MCU = atmega328p
-F_CPU = 16000000
-ARDUINO_PORT = /dev/ttyUSB*
-AVRDUDE_ARD_BAUDRATE = 57600
-ARDUINO_DIR = /usr/share/arduino
-
-# If you do not already have Arduino.mk, find it at
-# http://mjo.tc/atelier/2009/02/arduino-cli.html
-include /usr/share/arduino/Arduino.mk
-")
- (message "Edit the Makefile as required and re-run
arduino-upload."))
- (message (concat "No Makefile `" arduino-makefile-name "' exists.
Uploading cancelled.")))))
+ (start-file-process
+ "arduino-verify" "*arduino-verify*" arduino-executable "--verify"
(buffer-file-name)))
+
+(defun arduino-open-with-arduino ()
+ "Open the sketch with the Arduino IDE."
+ (interactive)
+ (start-file-process
+ "arduino-open" "*arduino-open*" arduino-executable (buffer-file-name)))
(defun arduino-serial-monitor (port speed)
"Monitor the `SPEED' on serial connection on `PORT' to the Arduino."
@@ -222,11 +201,6 @@ include /usr/share/arduino/Arduino.mk
(switch-to-buffer port)
(serial-term port (or speed (serial-read-speed)))))
-(defun arduino-run-arduino ()
- "Run the sketch with Arduino board."
- (interactive)
- (start-file-process "arduino" () arduino-executable (buffer-file-name)))
-
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.pde\\'" . arduino-mode))
- [nongnu] elpa/arduino-mode 241b179 032/107: Merge https://github.com/mavit/arduino-mode, (continued)
- [nongnu] elpa/arduino-mode 241b179 032/107: Merge https://github.com/mavit/arduino-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode aed4acb 034/107: Add additional customization, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode a468e63 035/107: Add basic support for file variables, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode d1233b1 036/107: Use configured preferences file for ede signature, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 9a168aa 038/107: fix void function `ede-project-autoload`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 1424952 039/107: add new keywords, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 411815d 041/107: change arduino-upload keybinding to [C-c C-c], ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 20e284a 042/107: format code, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 59806cc 043/107: add .ino file extension to auto-mode-alist, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode a95ebba 044/107: remove XEmacs support part, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 3d8aa47 045/107: improve and add some commands for command-line arduino.,
ELPA Syncer <=
- [nongnu] elpa/arduino-mode 3fc0851 046/107: use define-derived-mode for arduino-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 0150970 050/107: support org-mode babel Arduino src block, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 139b154 051/107: add support for --board option with header argument :boarder, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 3f0b3a4 057/107: rename command arduino-build -> arduino-verify, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 7b94f5b 058/107: creating process with make-process to use process sentinel to get notification., ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 714e0f0 059/107: add missing menu entries, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 6b549c8 064/107: add a command to add include-path file for irony, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 8235a4a 065/107: fix mode-line-process not disappear after process failed, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 431c3ba 069/107: Merge branch 'develop', ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 9b1bdb8 060/107: support show process info in mode-line, ELPA Syncer, 2021/08/29