Skip to content
Start your Arduino projects right out of the box
Makefile Python Shell C++
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Arduino-Makefile @ 8c8ebf7 update arduino makefile Mar 20, 2019
bin Track Empty folders Jun 28, 2014
lib
script Update travis ci scripts to download latest version of arduino + impr… Mar 20, 2019
src
test Track Empty folders Jun 28, 2014
.editorconfig
.gitignore add .ropeproject Dec 13, 2014
.gitmodules
.travis.yml travis-ci Sep 16, 2014
.ycm_extra_conf.py add avr-gcc 8.3.0 include path Mar 20, 2019
CONTRIBUTING.md updating toc Dec 2, 2015
INSTALL.md update readme - add mention of bare mbed project Sep 10, 2019
LICENSE
Makefile-CI.mk Merge branch 'master' into fix-typos Mar 20, 2019
Makefile-Linux.mk Merge branch 'master' into fix-typos Mar 20, 2019
Makefile-OSX.mk Merge branch 'master' into fix-typos Mar 20, 2019
README.md update readme - add mention of bare mbed project Sep 10, 2019
bare-arduino.sublime-project add sublimeclang setup file Jul 1, 2014

README.md

Build Status

Bare Arduino Project

⚠️ For mbed projects, see Bare mbed Project.

Table of Contents generated with DocToc

About

Ever wanted to start a new Arduino project and...

  • not use the terrible Arduino IDE?
  • use your favorite text editor instead?
  • have decent code completion and syntax checking?
  • organize your directory tree as you like?
    • libraries in lib
    • sources in src
    • tests in test
    • binaries in bin
    • etc.
  • use a newer version of avr-gcc such as 8.3.0?
  • use an awesome Makefile to compile and upload your code from the cli?

If you answered yes to one of the above, this Bare Arduino Project is just what you're looking for! :)

What you get

Based on what we've learned on our Moti project, this repo will allow you to:

  • move away from the Arduino IDE and use your favorite text editor such as Vim or SublimeText
  • get up and running in less time
  • use avr-gcc 8.3.0 to compile your code
  • use C++17 for your standard coding
  • use make to compile, make upload to upload, thanks to Sudar's incredible project Arduino-Makefile
  • use our Travis-CI continuous integration configuration and adapt it to suit your needs

To put it in a nuttshell, it allows you to write Arduino code as you ever wanted !

How to install and use

The full procedure is detailed in INSTALL.md.

Bugs

If you encounter some issues while using the Bare-Arduino-Project, please first report the issue here in this repo issue tracker and not in Arduino-Makefile.

It will allow us to investigate first and not overflow the Arduino-Makefile issue tracker.

Text editors

Because we are so awesome, we also provide your with 2 famous text editors configurations!

Sublime Text - SublimeClang

Note: I haven't used SublimeText for developping in C/C++ for years, so the following might not work as expected.

To code in C/C++, we highly recommend using SublimeClang, even if the plugin is not maintained anymore (this fork seems to be up-to-date). As far as we can tell, it works beautifully well and will save you a lot of time! :)

As quarnster puts it:

Clang plugin for Sublime Text 2 providing auto complete suggestions for C/C++/ObjC/ObjC++. It'll also optionally parse the code as it's typed and show errors and warnings.

The bare-arduino.sublime-project contains all you need to be up and running. Feel free to customize it to your needs with different flags for example.

Vim - YouCompleteMe

Vim is our default text editor and we use the incredible vim plugin YouCompleteMe for syntax checking and code completion.

As Valloric puts it:

YouCompleteMe is a fast, as-you-type, fuzzy-search code completion engine for Vim. It has several completion engines: an identifier-based engine that works with every programming language, a semantic, Clang-based engine that provides native semantic code completion for C/C++/Objective-C/Objective-C++ (from now on referred to as "the C-family languages"), a Jedi-based completion engine for Python, an OmniSharp-based completion engine for C# and an omnifunc-based completer that uses data from Vim's omnicomplete system to provide semantic completions for many other languages (Ruby, PHP etc.).

The .ycm_extra_conf.py file contains everything you need. It should work right out of the box on OS X and need very little modification on Linux!

Bonus - .editorconfig

To make sure everything is always formatted as you like, you can customize the .editorconfig file to suit your needs.

Please refer to the official Editorconfig documentation for more details and to download the plugins needed.

Contributing

Help is always more than welcome. If you want to take part in this project, please, make sure you read our Contributing guidelines.

Copyright and License

The MIT License (MIT)

Copyright (c) 2014 Ladislas de Toldi - ladislas at leka dot io

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
You can’t perform that action at this time.