{"id":228,"date":"2015-01-04T16:18:53","date_gmt":"2015-01-04T15:18:53","guid":{"rendered":"http:\/\/yves.laedis.ch\/cms\/?p=228"},"modified":"2016-01-03T22:47:05","modified_gmt":"2016-01-03T21:47:05","slug":"codeblocks-arduino-include-libraries","status":"publish","type":"post","link":"https:\/\/yves.laedis.ch\/cms\/codeblocks-arduino-include-libraries\/","title":{"rendered":"Code::Blocks Arduino include Libraries"},"content":{"rendered":"<p>For my Arduino development i decided to go with the Code::Blocks IDE.<br \/>\nI really like this portable IDE. (Visual Studio with the VisualMicro Plugin is great but i don&#8217;t like the install size of the Visual Studio IDE)<\/p>\n<p>Fortunately Stanley Huang has made a great work with his CodeBlocks Arduino IDE setup.<br \/>\nSee: <a title=\"arduinodev.com\" href=\"http:\/\/arduinodev.com\/codeblocks\/\" target=\"_blank\">http:\/\/arduinodev.com\/codeblocks\/<\/a><\/p>\n<blockquote><p>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.<\/p><\/blockquote>\n<p>I have a Folder called Arduino in my Users home folder. There i have folders for the CodeBlocksIDE, ArduinoIDE, my Projects and my Library.<br \/>\nSo this folder Contains almost everything to work on my Projects.<br \/>\nBut i had some trouble to compile my code with external Libraries (eg. the JeeLib) so here some Screenshots how to include external Libraries.<br \/>\nI always try to clone them from github so up\/downgrades are really simple.<\/p>\n<p>Step 1: Open CodeBlocks and open the Global Compiler Settings<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-235\" src=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/settings_compiler-300x75.png\" alt=\"settings_compiler\" width=\"300\" height=\"75\" srcset=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/settings_compiler-300x75.png 300w, https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/settings_compiler.png 1021w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Step 2: Add Custom Variable<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-232\" src=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/global-compiler-settings-300x219.png\" alt=\"global compiler settings\" width=\"300\" height=\"219\" srcset=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/global-compiler-settings-300x219.png 300w, https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/global-compiler-settings.png 811w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><a href=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/add_new_variable.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-231\" src=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/add_new_variable.png\" alt=\"add_new_variable\" width=\"296\" height=\"148\" \/><\/a><\/p>\n<p>Step 3: Open Project, Build options<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-234\" src=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/project_build-options-300x118.png\" alt=\"project_build-options\" width=\"300\" height=\"118\" srcset=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/project_build-options-300x118.png 300w, https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/project_build-options.png 765w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Step 4: Insert your required Libraries like this<\/p>\n<p><a href=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/project_buildOptions.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-233\" src=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/project_buildOptions-300x165.png\" alt=\"project_buildOptions\" width=\"300\" height=\"165\" srcset=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/project_buildOptions-300x165.png 300w, https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/project_buildOptions.png 986w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>That&#8217;s It. Enjoy a great Arduino Developer experience.<\/p>\n<p><a href=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/cbide.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-237\" src=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/cbide-300x191.png\" alt=\"cbide\" width=\"300\" height=\"191\" srcset=\"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/cbide-300x191.png 300w, https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/cbide-1024x650.png 1024w, https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/cbide.png 1688w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;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 &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/yves.laedis.ch\/cms\/codeblocks-arduino-include-libraries\/\">Weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":237,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5],"tags":[],"class_list":["post-228","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","item-wrap"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/yves.laedis.ch\/cms\/wp-content\/uploads\/2015\/01\/cbide.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4ixHP-3G","_links":{"self":[{"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":13,"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/posts\/228\/revisions\/280"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/media\/237"}],"wp:attachment":[{"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/categories?post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/tags?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}