2014-08-09 16:31:20 +03:00
|
|
|
.. _ide:
|
|
|
|
|
|
|
|
IDE Integration
|
|
|
|
===============
|
|
|
|
|
|
|
|
Eclipse
|
|
|
|
-------
|
|
|
|
`Building and debugging Atmel AVR (Arduino-based) project using Eclipse IDE+PlatformIO <http://www.ikravets.com/computer-life/programming/2014/06/20/building-and-debugging-atmel-avr-arduino-based-project-using-eclipse-ideplatformio>`_
|
|
|
|
|
|
|
|
|
|
|
|
VIM
|
|
|
|
---
|
|
|
|
|
|
|
|
Recommended bundles:
|
|
|
|
|
|
|
|
* Syntax highlight - `Arduino-syntax-file <https://github.com/vim-scripts/Arduino-syntax-file>`_
|
|
|
|
* Code Completion - `YouCompleteMe <https://github.com/Valloric/YouCompleteMe>`_
|
|
|
|
* Syntax checking - `Syntastic <https://github.com/scrooloose/syntastic>`_
|
|
|
|
|
|
|
|
Put to the project directory ``Makefile`` wrapper with contents:
|
|
|
|
|
|
|
|
.. code-block:: make
|
|
|
|
|
2014-08-09 23:13:29 +03:00
|
|
|
# Uncomment lines below if you have problems with $PATH
|
2014-08-09 19:31:34 +03:00
|
|
|
#SHELL := /bin/bash
|
|
|
|
#PATH := /usr/local/bin:$(PATH)
|
|
|
|
|
2014-08-09 16:31:20 +03:00
|
|
|
all:
|
|
|
|
platformio run -t upload
|
|
|
|
|
|
|
|
clean:
|
|
|
|
platformio run -t clean
|
|
|
|
|
|
|
|
|
|
|
|
Now, in VIM ``cd /path/to/this/project`` and press ``Ctrl+B`` or ``Cmd+B``
|
|
|
|
(Mac). *PlatformIO* should compile your source code from the ``src`` directory,
|
|
|
|
make firmware and upload it.
|