Arduino development: vim + ino

arduino_ino.png

About ʻino`

The arduino IDE has a simple and fashionable design. However, I still want to develop it on a command basis.

There is an unofficial but command line tool called ino. With it, you can easily build and upload. It is also officially introduced.

ʻIno` cannot be built or uploaded by itself. You need the official Arduino Software (IDE).

However, I was really into this. From the conclusion, the original ʻino` can be used with the arduino 1.0x series. Arduino Software currently has 1.0x series, 1.5x series (beta), and 1.6x series. The latest at the moment is 1.6.3. (OldSoftwareRelease)

I tried several patterns, but the result was as follows. The version of ʻino` installed from pip is v0.3.6, and the version compatible with v1.5x (v0.3.7) must be installed by yourself. It's not a very good result, so if you're developing on the command line based on the latest version, you'll probably want to fix it yourself or find another way.

ino v0.3.6 (pip install) ino v0.3.7 (githug install)
IDE v1.6.3 × ×
IDE v1.5.8 BETA × ×
IDE v1.5 BETA x
IDE v1.0.5

I wanted to build using the latest version, so I fixed ʻino with a trial and error, and I was able to build. However, other commands, such as ʻupload, also needed to be modified, so I broke my heart and gave up. Because I want to play Arduino as soon as possible. (I'm talking about using an IDE ...)

For the time being, you can build and upload even older versions, so make a note of this. If you are interested, please check the difference in Release Notes.

Environment

Get Arduino Software

It's been a long preamble, but the Arduino version uses v1.0.5. You can get it from the Arduino site for Mac and from ʻapt-get` for Ubuntu. I made a note because I built the environment for both platforms together. The procedure is almost the same for both.

Mac

--Download the latest v1.0x series v1.0.5

20150428084901.png

#You can also go with wget
$ wget http://arduino.googlecode.com/files/arduino-1.0.5-macosx.zip

--Unzip and throw it into the application folder

Ubuntu

--You can install it with ʻapt-get`. The version from the package is v1.0.5.

# arduino IDE
$ sudo apt-get install arduino

ino installation

--Install using pip

$ easy_install pip
$ pip install ino

--Install yourself if you want the latest version for v1.5

$ git clone https://github.com/amperka/ino.git
$ cd ino
$ make install

--You may have to be a sudo user depending on your environment.

Try using ino

Project creation

LED lighting sample code is written by default with -t

$ mkdir ./hoge
$ cd ./hoge
$ ino inot -t blink

build

$ ino build

upload

I was able to upload without specifying the port. It can also be specified as an option.

$ ino upload

The end

It's very convenient to be able to build and upload with simple operations without worrying about any details. Of course, you can also set the details. You can create /etc/ino.ini or ~ / .inorc and specify, for example, the serial device, baud rate, Arduino IDE directory, etc. (http://inotool.org/quickstart)

You can also check the serial with the ʻino serialcommand, butpicocom` is required.

Actually, I don't use ʻino. I'm using platformio`. This is easier, so I'd like to leave a note.

Recommended Posts

Arduino development: vim + ino
Arduino development on the command line: vim + platformio
Vim
vim
Vim + Python development environment setting memo