{"id":91,"date":"2013-10-25T10:34:09","date_gmt":"2013-10-25T10:34:09","guid":{"rendered":"https:\/\/arduino-developer.com\/arduino\/?p=91"},"modified":"2020-10-23T12:36:40","modified_gmt":"2020-10-23T11:36:40","slug":"adding-a-library","status":"publish","type":"post","link":"https:\/\/arduino-developer.com\/arduino\/libraries\/adding-a-library","title":{"rendered":"Adding A Library"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Adding A Library Using the IDE Library Manager<\/h4>\n\n\n\n<p>Open the Arduino library manager:&nbsp; Menu &gt; Sketch &gt; Include Library &gt; Manage Libraries<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Adding A Library For All Projects<\/h4>\n\n\n\n<p>On Windows<\/p>\n\n\n\n<p>Copy the library directory into the folder:&nbsp;My Documents \/Arduino\/libraries\/<\/p>\n\n\n\n<p>On A Mac<\/p>\n\n\n\n<p>Copy the library directory into the folder:&nbsp;~\/Documents\/Arduino\/libraries\/<\/p>\n\n\n\n<p>Restart the Arduino&nbsp;IDE and the library will be available to add from Menu &gt; Sketch &gt; Import Library<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Installing A Library<\/h4>\n\n\n\n<p>To install a library which is not part of the pre-installed libraries get the zip file of the library.<\/p>\n\n\n\n<p>Menu > Sketch > Include Library > Add .zip Library > Select the zip file.<\/p>\n\n\n\n<p>Full library instructions are&nbsp;<a href=\"http:\/\/arduino.cc\/en\/Guide\/Libraries\">here<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Include a Library<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt; Servo.h ><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Adding A Library Using the IDE Library Manager Open the Arduino library manager:&nbsp; Menu &gt; Sketch &gt; Include Library &gt; Manage Libraries Adding A Library For All Projects On Windows Copy the library directory into the folder:&nbsp;My Documents \/Arduino\/libraries\/ On A Mac Copy the library directory into the folder:&nbsp;~\/Documents\/Arduino\/libraries\/ Restart the Arduino&nbsp;IDE and the library [&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-91","post","type-post","status-publish","format-standard","hentry","category-libraries"],"_links":{"self":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/91","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=91"}],"version-history":[{"count":5,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":627,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/91\/revisions\/627"}],"wp:attachment":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}