⚠️ For mbed projects, see Bare mbed Project.
Table of Contents generated with DocToc
Ever wanted to start a new Arduino project and...
directory treeas you like?
Makefileto compile and upload your code from the
If you answered yes to one of the above, this Bare Arduino Project is just what you're looking for! :)
Based on what we've learned from our Moti project, this repo will allow you to:
avr-gcc 9.x.xto compile your code
C++17for your standard coding
make uploadto upload, thanks to Sudar's incredible project Arduino-Makefile
To put it in a nutshell, it allows you to write Arduino code the way you've always wanted!
The full procedure is detailed in INSTALL.md.
It will allow us to investigate first and not overflow the Arduino-Makefile issue tracker.
Because we are so awesome, we also provide your with 2 famous text editors configurations!
⚠️ 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.
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 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.).
.ycm_extra_conf.py file contains everything you need. It should work right out of the box on macOS and need very little modification on Linux!
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.
Help is always more than welcome. If you want to take part in this project, please, make sure you read our Contributing guidelines.
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.