{"id":3164,"date":"2019-09-30T23:33:17","date_gmt":"2019-09-30T21:33:17","guid":{"rendered":"http:\/\/arduino.net.pl\/?p=3164"},"modified":"2019-09-30T23:38:12","modified_gmt":"2019-09-30T21:38:12","slug":"dodawanie-wlasnej-biblioteki-w-platformio","status":"publish","type":"post","link":"https:\/\/arduino.net.pl\/index.php\/dodawanie-wlasnej-biblioteki-w-platformio\/","title":{"rendered":"Dodawanie w\u0142asnej biblioteki w PlatformIO"},"content":{"rendered":"\n<p>Temat na forum:<br><a href=\"https:\/\/community.platformio.org\/t\/trying-to-understand-how-to-install-custom-local-library\/3031\">Trying to understand how to install custom local library<\/a><br><br>Odpowied\u017a:<\/p>\n\n\n\n<p><a href=\"https:\/\/community.platformio.org\/t\/trying-to-understand-how-to-install-custom-local-library\/3031\/7\">Dec &#8217;17<\/a>   autor:    <strong><a href=\"https:\/\/community.platformio.org\/u\/ivankravets\">ivankravets<\/a><\/strong>   PlatformIO Team<\/p>\n\n\n\n<p>There a few options:<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Add library to project<\/h5>\n\n\n\n<p>Just unpack and copy library to&nbsp;<code>lib<\/code>&nbsp;folder in your project.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Install to global storage<\/h5>\n\n\n\n<p>In this case, library will be visible for other projects. Please place\/unpack your library into global storage, item&nbsp;#4&nbsp;in&nbsp;<a href=\"http:\/\/docs.platformio.org\/en\/latest\/librarymanager\/ldf.html#storage\">http:\/\/docs.platformio.org\/en\/latest\/librarymanager\/ldf.html#storage&nbsp;1.6k<\/a><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Using PlatformIO IDE &gt; PIO Home<\/h5>\n\n\n\n<p>Please open PlatformIO IDE &gt; PIO Home &gt; Libraries &gt; Install (Advanced library installation) and paste full path to a custom library and press \u201cInstall\u201d.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Install using PlatformIO Core (CLI)<\/h5>\n\n\n\n<p>See&nbsp;<a href=\"https:\/\/docs.platformio.org\/en\/latest\/userguide\/lib\/cmd_install.html\">https:\/\/docs.platformio.org\/en\/latest\/userguide\/lib\/cmd_install.html&nbsp;74<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pio lib --global install \/path\/to\/custon\/library folder or archive<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Project dependency<\/h5>\n\n\n\n<p>See&nbsp;<a href=\"https:\/\/docs.platformio.org\/en\/latest\/librarymanager\/quickstart.html#project-dependencies\">https:\/\/docs.platformio.org\/en\/latest\/librarymanager\/quickstart.html#project-dependencies&nbsp;224<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[env:myenv]\nlib_deps = \/path\/to\/custom\/library<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Temat na forum:Trying to understand how to install custom local library Odpowied\u017a: Dec &#8217;17 autor: ivankravets PlatformIO Team There a few options: Add library to project Just unpack and copy&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,96],"tags":[],"class_list":["post-3164","post","type-post","status-publish","format-standard","hentry","category-arduino","category-platformio"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/posts\/3164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/comments?post=3164"}],"version-history":[{"count":5,"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/posts\/3164\/revisions"}],"predecessor-version":[{"id":3169,"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/posts\/3164\/revisions\/3169"}],"wp:attachment":[{"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/media?parent=3164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/categories?post=3164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/tags?post=3164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}