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

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

[nongnu] elpa/arduino-mode edf56c2 049/107: add two more commands to ins


From: ELPA Syncer
Subject: [nongnu] elpa/arduino-mode edf56c2 049/107: add two more commands to install boards and libraries
Date: Sun, 29 Aug 2021 10:58:15 -0400 (EDT)

branch: elpa/arduino-mode
commit edf56c2c144bc477a764bf6497747244b5177181
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    add two more commands to install boards and libraries
---
 arduino-mode.el | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arduino-mode.el b/arduino-mode.el
index 4d0d9ba..cd1c212 100644
--- a/arduino-mode.el
+++ b/arduino-mode.el
@@ -197,6 +197,27 @@ Each list item should be a regexp matching a single 
identifier."
   (start-file-process
    "arduino-open" "*arduino-open*" arduino-executable (buffer-file-name)))
 
+(defun arduino-install-boards (board)
+  "Install `BOARD' support for Arduino."
+  (interactive (list (completing-read "Arduino install board: "
+                                      '()
+                                      nil nil
+                                      "arduino:sam")))
+  (start-process
+   "arduino-install-boards" "*arduino-install-boards*"
+   arduino-executable "--install-boards" board)
+  )
+
+(defun arduino-install-library (library)
+  "Install `LIBRARY' support for Arduino."
+  (interactive (list (completing-read "Arduino install library: "
+                                      '()
+                                      nil nil
+                                      "Bridge:1.0.0")))
+  (start-process
+   "arduino-install-library" "*arduino-install-library*"
+   arduino-executable "--install-library" library))
+
 (require 'term)
 (defun arduino-serial-monitor (port speed)
   "Monitor the `SPEED' on serial connection on `PORT' to the Arduino."



reply via email to

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