<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ko">
	<id>https://arduwiki.com/html/index.php?action=history&amp;feed=atom&amp;title=Arduino_Libraries</id>
	<title>Arduino Libraries - 편집 역사</title>
	<link rel="self" type="application/atom+xml" href="https://arduwiki.com/html/index.php?action=history&amp;feed=atom&amp;title=Arduino_Libraries"/>
	<link rel="alternate" type="text/html" href="https://arduwiki.com/html/index.php?title=Arduino_Libraries&amp;action=history"/>
	<updated>2026-04-28T21:24:18Z</updated>
	<subtitle>이 문서의 편집 역사</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://arduwiki.com/html/index.php?title=Arduino_Libraries&amp;diff=815&amp;oldid=prev</id>
		<title>ArduWiki: Created page with &quot;This article is written for the Arduino IDE 2.x version.  == Libraries == A collection of pre-written code, classes, and data, modularized for easy use of specific functions.  === Structure ===  # examples folder: Examples of using the library # .cpp files: Source code files # .h files: Header files # Others (keyword files, Readme, etc.)  === Example Usage (Controlling a servo motor from 0 to 180 degrees) ===  * Without using a library to control a servo motor &lt;syntaxhig...&quot;</title>
		<link rel="alternate" type="text/html" href="https://arduwiki.com/html/index.php?title=Arduino_Libraries&amp;diff=815&amp;oldid=prev"/>
		<updated>2024-03-23T06:52:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This article is written for the Arduino IDE 2.x version.  == Libraries == A collection of pre-written code, classes, and data, modularized for easy use of specific functions.  === Structure ===  # examples folder: Examples of using the library # .cpp files: Source code files # .h files: Header files # Others (keyword files, Readme, etc.)  === Example Usage (Controlling a servo motor from 0 to 180 degrees) ===  * Without using a library to control a servo motor &amp;lt;syntaxhig...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;새 문서&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This article is written for the Arduino IDE 2.x version.&lt;br /&gt;
&lt;br /&gt;
== Libraries ==&lt;br /&gt;
A collection of pre-written code, classes, and data, modularized for easy use of specific functions.&lt;br /&gt;
&lt;br /&gt;
=== Structure ===&lt;br /&gt;
&lt;br /&gt;
# examples folder: Examples of using the library&lt;br /&gt;
# .cpp files: Source code files&lt;br /&gt;
# .h files: Header files&lt;br /&gt;
# Others (keyword files, Readme, etc.)&lt;br /&gt;
&lt;br /&gt;
=== Example Usage (Controlling a servo motor from 0 to 180 degrees) ===&lt;br /&gt;
&lt;br /&gt;
* Without using a library to control a servo motor&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
int servopin = 6;&lt;br /&gt;
&lt;br /&gt;
void setup() {&lt;br /&gt;
  pinMode(servopin, OUTPUT);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop() {&lt;br /&gt;
  for (int i = 1000; i &amp;lt; 2000; i++) {&lt;br /&gt;
    digitalWrite(servopin, HIGH);&lt;br /&gt;
    delayMicroseconds(i);&lt;br /&gt;
    digitalWrite(servopin, LOW);&lt;br /&gt;
    delayMicroseconds(20);&lt;br /&gt;
  }&lt;br /&gt;
  delay(500);&lt;br /&gt;
&lt;br /&gt;
  for (int i = 2000; i &amp;gt; 1000; i--) {&lt;br /&gt;
    digitalWrite(servopin, HIGH);&lt;br /&gt;
    delayMicroseconds(i);&lt;br /&gt;
    digitalWrite(servopin, LOW);&lt;br /&gt;
    delayMicroseconds(20);&lt;br /&gt;
  }&lt;br /&gt;
  delay(500);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Using a library to control a servo motor&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;Servo.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Servo servo;&lt;br /&gt;
int servopin = 7;&lt;br /&gt;
&lt;br /&gt;
void setup() {&lt;br /&gt;
  servo.attach(servopin);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop() {&lt;br /&gt;
  servo.write(0);&lt;br /&gt;
  delay(500);&lt;br /&gt;
  servo.write(180);&lt;br /&gt;
  delay(500);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;You can see that the for loop part of the non-library code is replaced with the servo.write() in the library-using code.&lt;br /&gt;
&lt;br /&gt;
In addition to servo motors, many sensors and modules can be used more conveniently.&lt;br /&gt;
&lt;br /&gt;
== Installing Libraries ==&lt;br /&gt;
&lt;br /&gt;
=== Installing via Library Manager ===&lt;br /&gt;
1. Launch the Arduino IDE and press [Ctrl + Shift + i] to open the Library Manager window.&lt;br /&gt;
&lt;br /&gt;
* From Arduino IDE 2.0, a new window will not pop up but open on the left side.&lt;br /&gt;
&lt;br /&gt;
2. earch for the desired library&amp;#039;s name in the part shown in the image below.&lt;br /&gt;
&lt;br /&gt;
3. Click the INSTALL button to install the desired library.&lt;br /&gt;
&lt;br /&gt;
* Clicking the More info button takes you to the detailed page of that library.&lt;br /&gt;
&lt;br /&gt;
[[File:라이브러리 매니저.png|center|class=coders100]]&lt;br /&gt;
This method is easy, but some less common sensors or modules might not appear in the Library Manager. In such cases, use the methods below.&lt;br /&gt;
&lt;br /&gt;
=== Installing from a ZIP file ===&lt;br /&gt;
Search the internet to download the library you want to install as a .zip file.&lt;br /&gt;
&lt;br /&gt;
In the Arduino IDE, click [Sketch - Include Library - Add .ZIP Library] and select the .zip file.&lt;br /&gt;
&lt;br /&gt;
Select the .zip file directly without extracting it.&lt;br /&gt;
[[File:Zip.png|center|class=coders100]]&lt;br /&gt;
&lt;br /&gt;
=== Manual Installation ===&lt;br /&gt;
1. Search the internet to download the necessary library.&lt;br /&gt;
&lt;br /&gt;
2. Open the preferences in the Arduino IDE with the shortcut [Ctrl + ,] to check the path.&lt;br /&gt;
[[File:수동설치경로.png|center|class=coders100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Open the folder and navigate to the indicated path, then find the [libraries] folder.&lt;br /&gt;
&lt;br /&gt;
4. Put the downloaded library folder into the libraries folder.&lt;br /&gt;
&lt;br /&gt;
== Checking Library Installation ==&lt;br /&gt;
After adding the library to the code, press the check mark to compile.&lt;br /&gt;
&lt;br /&gt;
If the compilation completes without issues, the library has been successfully installed.&lt;br /&gt;
[[File:라이브러리 설치 확인.png|center|class=coders100]]&lt;/div&gt;</summary>
		<author><name>ArduWiki</name></author>
	</entry>
</feed>