Code::Blocks Arduino include Libraries

For my Arduino development i decided to go with the Code::Blocks IDE.
I really like this portable IDE. (Visual Studio with the VisualMicro Plugin is great but i don’t like the install size of the Visual Studio IDE)

Fortunately Stanley Huang has made a great work with his CodeBlocks Arduino IDE setup.
See: http://arduinodev.com/codeblocks/

CodeBlocks Arduino IDE is a customized distribution of the open-source Code::Blocks IDE which I enhanced for state-of-art experience of Arduino programming.

I have a Folder called Arduino in my Users home folder. There i have folders for the CodeBlocksIDE, ArduinoIDE, my Projects and my Library.
So this folder Contains almost everything to work on my Projects.
But i had some trouble to compile my code with external Libraries (eg. the JeeLib) so here some Screenshots how to include external Libraries.
I always try to clone them from github so up/downgrades are really simple.

Step 1: Open CodeBlocks and open the Global Compiler Settings

settings_compiler

Step 2: Add Custom Variable

global compiler settings

add_new_variable

Step 3: Open Project, Build options

project_build-options

Step 4: Insert your required Libraries like this

project_buildOptions

That’s It. Enjoy a great Arduino Developer experience.

cbide

Schreibe einen Kommentar

Deine Email-Adresse wird nicht veröffentlicht.