{"id":154,"date":"2014-04-15T12:35:35","date_gmt":"2014-04-15T12:35:35","guid":{"rendered":"https:\/\/arduino-developer.com\/arduino\/?p=154"},"modified":"2014-09-26T18:01:00","modified_gmt":"2014-09-26T18:01:00","slug":"using-libraries-in-your-own-files","status":"publish","type":"post","link":"https:\/\/arduino-developer.com\/arduino\/libraries\/using-libraries-in-your-own-files","title":{"rendered":"Using Libraries In Your Own Files"},"content":{"rendered":"<p>\nIf you are using libraries such as&nbsp;Wire in your own .c files or library then you need to #include &lt;LibraryName.h&gt; both in your library (where you&#39;re using the things it defines) and in your main sketch (which tells the IDE to include its folder in the search path for includes during compilation and to link in its .c \/ .cpp files). Otherwise you get errors like &quot;&#39;LibraryName&nbsp;was not declared in this scope&quot;\n<\/p>\n<p>\n&nbsp;\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using libraries such as&nbsp;Wire in your own .c files or library then you need to #include &lt;LibraryName.h&gt; both in your library (where you&#39;re using the things it defines) and in your main sketch (which tells the IDE to include its folder in the search path for includes during compilation and to link [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-154","post","type-post","status-publish","format-standard","hentry","category-libraries"],"_links":{"self":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/comments?post=154"}],"version-history":[{"count":1,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/154\/revisions"}],"predecessor-version":[{"id":155,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/154\/revisions\/155"}],"wp:attachment":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/media?parent=154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/categories?post=154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/tags?post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}