{"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\/zh\/86duino-library\/installing-additional-86duino-libraries\/","title":{"rendered":"\u5b89\u88dd\u7b2c\u4e09\u65b9 86Duino \u7a0b\u5f0f\u5eab"},"content":{"rendered":"<p class=\"wp-block-paragraph\">\u7576\u60a8\u719f\u6089 86Duino \u8edf\u9ad4\u4e26\u4f7f\u7528\u5167\u5efa\u7684\u529f\u80fd\u5f8c\uff0c\u60a8\u53ef\u80fd\u60f3\u8981\u4f7f\u7528\u984d\u5916\u7684\u51fd\u5f0f\u5eab\u4f86\u64f4\u5145 86Duino \u7684\u80fd\u529b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7a0b\u5f0f\u5eab ( Libraries ) \u662f\u4ec0\u9ebc?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7a0b\u5f0f\u5eab\u662f\u7a0b\u5f0f\u78bc\u7684\u96c6\u5408\uff0c\u53ef\u8b93\u60a8\u8f15\u9b06\u9023\u63a5\u611f\u6e2c\u5668\u3001\u986f\u793a\u5668\u3001\u6a21\u7d44\u7b49\u3002\u4f8b\u5982\uff0c\u5167\u5efa\u7684&nbsp;<a href=\"https:\/\/www.qec.tw\/zh\/86duino-library\/liquidcrystal-library\/\">LiquidCrystal library<\/a>&nbsp;\u53ef\u8b93\u60a8\u8f15\u9b06\u8207\u5b57\u5143 LCD \u986f\u793a\u5668\u5c0d\u8a71\u3002\u7db2\u969b\u7db2\u8def\u4e0a\u6709\u6578\u767e\u500b\u984d\u5916\u7684\u51fd\u5f0f\u5eab\u53ef\u4f9b\u4e0b\u8f09\u3002\u5167\u5efa\u7684\u51fd\u5f0f\u5eab\u548c\u5176\u4e2d\u4e00\u4e9b\u984d\u5916\u7684\u51fd\u5f0f\u5eab\u5217\u65bc&nbsp;<a href=\"https:\/\/www.qec.tw\/zh\/86duino\/libraries\/\">\u53c3\u8003\u8cc7\u6599<\/a>. \u82e5\u8981\u4f7f\u7528\u984d\u5916\u7684\u51fd\u5f0f\u5eab\uff0c\u60a8\u9700\u8981\u5148\u5b89\u88dd\u5b83\u5011\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5982\u4f55\u5b89\u88dd\u7a0b\u5f0f\u5eab ( 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\">\u81ea\u52d5\u5316\u5b89\u88dd<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u82e5\u8981\u5728 IDE \u4e2d\u5b89\u88dd\u7b2c\u4e09\u65b9\u51fd\u5f0f\u5eab\uff0c\u8acb\u52ff\u89e3\u58d3\u7e2e\u5df2\u4e0b\u8f09\u7684\u51fd\u5f0f\u5eab\uff0c\u4e26\u4fdd\u6301\u539f\u6a23\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 86Duino \u7de8\u78bc\u4e2d\uff0c\u9078\u5230\u00a0<em>\u8349\u5716 &gt; \u532f\u5165\u51fd\u5f0f\u5eab ( Sketch &gt; Import Library )<\/em>. \u5728\u4e0b\u62c9\u6e05\u55ae\u7684\u9802\u90e8\uff0c\u9078\u64c7\u300c\u65b0\u589e\u5716\u5eab\u300d( \u201cAdd Library\u201d )\u9078\u9805\u3002<\/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>Sketch &gt; Import Library<\/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;\u4ee5\u53ca&nbsp;<code>DuinoParty.h<\/code>&nbsp;inside. (If the&nbsp;<code>.cpp<\/code>&nbsp;\u4ee5\u53ca&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;\u4ee5\u53ca&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;\u4ee5\u53ca&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;\u4ee5\u53ca&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>\u4ee5\u53ca<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\/zh\/86duino\/86duino-getting-started\/\">Getting-Started Home<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><em>The text of the 86Duino reference is a modification of&nbsp;<a href=\"http:\/\/arduino.cc\/en\/Reference\/HomePage\" target=\"_blank\" rel=\"noopener\">the Arduino reference<\/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>. Code samples in the reference are released into the public domain.<\/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\/zh\/wp-json\/wp\/v2\/posts\/9051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/comments?post=9051"}],"version-history":[{"count":0,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/posts\/9051\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/media\/9052"}],"wp:attachment":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/media?parent=9051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/categories?post=9051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/tags?post=9051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}