{"id":9051,"date":"2022-05-16T02:51:23","date_gmt":"2022-05-16T02:51:23","guid":{"rendered":"https:\/\/www.qec.tw\/?p=9051"},"modified":"2022-06-09T10:38:49","modified_gmt":"2022-06-09T10:38:49","slug":"installing-additional-86duino-libraries","status":"publish","type":"post","link":"https:\/\/www.qec.tw\/ja\/86duino-library\/installing-additional-86duino-libraries\/","title":{"rendered":"Installing Additional 86Duino Libraries"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Once you are comfortable with the 86Duino software and using the built-in functions, you may want to extend the ability of your 86Duino with additional libraries.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What are Libraries?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Libraries are a collection of code that makes it easy for you to connect to a sensor, display, module, etc. For example, the built-in&nbsp;<a href=\"https:\/\/www.qec.tw\/ja\/86duino-library\/liquidcrystal-library\/\">LiquidCrystal \u30e9\u30a4\u30d6\u30e9\u30ea<\/a>&nbsp;makes it easy to talk to character LCD displays. There are hundreds of additional libraries available on the Internet for download. The built-in libraries and some of these additional libraries are listed in the&nbsp;<a href=\"https:\/\/www.qec.tw\/ja\/86duino\/libraries\/\">reference<\/a>. To use the additional libraries, you will need to install them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Install a Library<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Libraries are often distributed as a ZIP file or folder. The name of the folder is the name of the library. Inside the folder will be a&nbsp;<code>.cpp<\/code>&nbsp;file, a&nbsp;<code>.h<\/code>&nbsp;file and often a&nbsp;<code>keywords.txt<\/code>&nbsp;file,&nbsp;<code>examples<\/code>&nbsp;folder, and other files required by the library.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Automatic installation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To install 3rd party libraries in the IDE, do not unzip the downloaded library and leave it as is.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the 86Duino Coding, navigate to\u00a0<em>Sketch > Import Library<\/em>. At the top of the drop-down list, select the option to \u201cAdd Library\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/www.86duino.com\/wp-content\/uploads\/2014\/01\/addLIB.bmp\" alt=\"addLIB\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/www.86duino.com\/wp-content\/uploads\/2014\/01\/addLIB.bmp\" target=\"_blank\" rel=\"noopener\"><\/a>You will be prompted to select the library you would like to add. Navigate to the&nbsp;<code>.zip<\/code>&nbsp;file\u2019s location and open it.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/www.86duino.com\/wp-content\/uploads\/2014\/01\/chooseLIB.bmp\" alt=\"chooseLIB\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/www.86duino.com\/wp-content\/uploads\/2014\/01\/chooseLIB.bmp\" target=\"_blank\" rel=\"noopener\"><\/a>Return to the&nbsp;<em>\u30b9\u30b1\u30c3\u30c1 &gt; \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9<\/em>&nbsp;menu. You should now see the library at the bottom of the drop-down menu. It is ready to be used in your sketch.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/www.86duino.com\/wp-content\/uploads\/2014\/01\/showLIB.bmp\" alt=\"showLIB\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/www.86duino.com\/wp-content\/uploads\/2014\/01\/showLIB.bmp\" target=\"_blank\" rel=\"noopener\"><\/a>The zip file will have been expanded in the&nbsp;<code>libraries<\/code>&nbsp;folder in your 86Duino sketches directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">NB: the library will be available to use in sketches, but examples for the library will not be exposed in the&nbsp;<em>File &gt; Examples<\/em>&nbsp;until after the IDE has restarted.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Manual installation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To install the library, first quit the 86Duino Coding application.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then uncompress the ZIP file containing the library. For example, if you\u2019re installing a library called \u201cDuinoParty\u201d, uncompress&nbsp;<code>DuinoParty.zip<\/code>. It should contain a folder called DuinoParty, with files like&nbsp;<code>DuinoParty.cpp<\/code>&nbsp;\u3068&nbsp;<code>DuinoParty.h<\/code>&nbsp;inside. (If the&nbsp;<code>.cpp<\/code>&nbsp;\u3068&nbsp;<code>.h<\/code>&nbsp;files aren\u2019t in a folder, you\u2019ll need to create one. In this case, you\u2019d make a folder called \u201cDuinoParty\u201d and move into it all the files that were in the ZIP file, like&nbsp;<code>DuinoParty.cpp<\/code>&nbsp;\u3068&nbsp;<code>DuinoParty.h<\/code>.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Drag the DuinoParty folder into this folder (your libraries folder). Under Windows, it will likely be called \u201cMy Documents\\86Duino\\libraries\u201d. For Mac users, it will likely be called \u201cDocuments\/86Duino\/libraries\u201d. On Linux, it will be the \u201clibraries\u201d folder in your sketchbook.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your 86Duino library folder should now look like this (on Windows):<code><br>My Documents\\86Duino\\libraries\\DuinoParty\\DuinoParty.cpp<br>My Documents\\86Duino\\libraries\\DuinoParty\\DuinoParty.h<br>My Documents\\86Duino\\libraries\\DuinoParty\\examples<br>....<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">or like this (on Mac):<code><br>Documents\/86Duino\/libraries\/DuinoParty\/DuinoParty.cpp<br>Documents\/86Duino\/libraries\/DuinoParty\/DuinoParty.h<br>Documents\/86Duino\/libraries\/DuinoParty\/examples<br>...<br><\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">or similarly for Linux.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There may be more files than just the&nbsp;<code>.cpp<\/code>&nbsp;\u3068&nbsp;<code>.h<\/code>&nbsp;files, just make sure they\u2019re all there. (The library won\u2019t work if you put the&nbsp;<code>.cpp<\/code>&nbsp;\u3068&nbsp;<code>.h<\/code>&nbsp;files directly into the libraries folder or if they\u2019re nested in an extra folder. For example:<code><br>Documents\\86Duino\\libraries\\DuinoParty.cpp<\/code><br>\u3068<code><br>Documents\\86Duino\\libraries\\DuinoParty\\DuinoParty\\DuinoParty.cpp<\/code><br>won\u2019t work.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Restart the 86Duino Coding application. Make sure the new library appears in the&nbsp;<em>Sketch-&gt;Import Library<\/em>&nbsp;menu item of the software.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it! You\u2019ve installed a library!<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.qec.tw\/ja\/86duino\/86duino-getting-started\/\">Getting-Started Home<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><em>86Duino \u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306e\u30c6\u30ad\u30b9\u30c8\u306f&nbsp;<a href=\"http:\/\/arduino.cc\/en\/Reference\/HomePage\" target=\"_blank\" rel=\"noopener\">Arduino \u30ec\u30d5\u30a1\u30ec\u30f3\u30b9<\/a>, and is licensed under a&nbsp;<a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/3.0\/\" target=\"_blank\" rel=\"noopener\">Creative Commons Attribution-ShareAlike 3.0 License<\/a>\u4e0b\u3067\u30e9\u30a4\u30bb\u30f3\u30b9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u5185\u306e\u30b3\u30fc\u30c9\u30b5\u30f3\u30d7\u30eb\u306f\u30d1\u30d6\u30ea\u30c3\u30af\u30c9\u30e1\u30a4\u30f3\u3068\u3057\u3066\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>Once you are comfortable with the 86Duino software and using the built-in functions, you may want to extend the ability of your 86Duino with additional [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9052,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[198],"tags":[162],"class_list":["post-9051","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-86duino-library","tag-86duino"],"_links":{"self":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/9051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/comments?post=9051"}],"version-history":[{"count":0,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/9051\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media\/9052"}],"wp:attachment":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media?parent=9051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/categories?post=9051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/tags?post=9051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}