descriptionArduino IDE for Emacs developer.
ownernumbchild@gmail.com
last changeThu, 10 Feb 2022 13:55:42 +0000 (10 21:55 +0800)
content tags
add:
README.org
* Intro

Arduino IDE for Emacs developer.

* Screenshots

#+ATTR_ORG: :width 600
#+ATTR_LATEX: :width 6.0in
#+ATTR_HTML: :width 600px
[[file:arduino-mode.png]]

* Install

** MELPA available

* Features

- syntax highlighting
- command-line arduino interface
- org-mode babel support

* Usage

** interactive with Arduino board in arduino-mode

- Upload :: In Arduino source code file, press =[C-c C-c]= to upload to Arduino board.
- Build :: In Arduino source code file, press =[C-c C-v]= to build.

** Arduino code completing

use with package company-arduino to get Arduino code completing.

** flycheck support

#+begin_src emacs-lisp
(require 'flycheck-arduino)
(add-hook 'arduino-mode-hook #'flycheck-arduino-setup)
#+end_src

** Org Mode Babel source block support with ob-arduino.el

You need have Org-mode installed, ~ob-arduino.el~ is in arduino-mode by default now.

#+begin_src emacs-lisp
(require 'ob-arduino)
(add-to-list 'org-babel-load-languages '(arduino . t))
(org-babel-do-load-languages 'org-babel-load-languages org-babel-load-languages)
#+end_src

Like the following src block, press =[C-c C-c]= to upload to Arduino board.

#+begin_src org
,#+begin_src arduino
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);                       // wait for 0.1 second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(100);                       // wait for 0.1 second
}
,#+end_src
#+end_src
shortlog
2022-02-10 stardivinerUpdate library headers homepagemaster
2022-02-08 stardivinerAdd package description.
2021-11-13 stardivinerremove unnecessary arduino-mode requirement in ob-ardui...
2021-11-12 stardivinerRemove (require 'org) to fix recursive require.
2021-09-07 Stefan MonnierFix warnings when flycheck is unavailable and some...
2021-09-07 stardivinerDelete dir-locals
2021-05-27 stardivinerMention ob-arduino.el usage in README
2021-05-27 stardivinerob-arduino set tangle filename extension
2021-05-27 stardivinerAdd ob-arduino.el which is moved out of org-mode contrib/
2021-02-16 stardivinerAdd flycheck-arduino metadata
2021-02-16 stardivinerMention flycheck-arduino usage in README
2020-12-31 stardivinerfix not defined flycheck-arduino-setup
2020-12-30 stardivinerbump version to v1.3.0
2020-12-30 stardivinerput flycheck-arduino-setup in arduino-mode
2020-12-28 stardivinerEmacs 28.1 deprecated easy-menu-add function
2020-12-27 stardivineradjust code line number to fix byte compile invalid...
...
heads
2 years ago master
4 years ago develop
6 years ago feature/ob-arduino