Skip to content

Add a library to Arduino IDE #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
title: "Add a library to Arduino IDE"
---

Libraries are a collection of code that makes it easy to connect sensors, RTCs, Wi-Fi modules, RGB matrices and other components to your board.

---

## Add a library in Library manager

1. In the menu bar, go to `Tools > Manage Libraries...` (In IDE 2, you can also click on the Library Manager icon on the left).

2. Search for the library you want to install.

3. Find the library in the search results.

4. Click on the INSTALL button.

![IDE 1 Library Manager with search box and Install button highlighted](img/LibraryManager_InstallingLibrary_IDE1.png)

![IDE 2 Library Manager Icon, search box, and Install button highlighted](img/LibraryManager_InstallingLibrary_IDE2.png)

5. Wait for the installation to complete.

6. After the installation is complete, the library will be labelled as INSTALLED, and it is ready to be [included in a sketch](https://www.arduino.cc/reference/en/language/structure/further-syntax/include/).

---

## Importing a .zip Library

1. In the menu bar, go to `Sketch > Include Library > Add .ZIP Library...`

2. You will be prompted to select the library you want to add. Navigate to the .zip file's location and open it.

3. The library will automatically be installed and ready to be [included in a sketch](https://www.arduino.cc/reference/en/language/structure/further-syntax/include/).

## Manual Installation

---

1. Go to the directory where you have downloaded the .zip library file.

2. Extract the .zip file.

3. Select the main folder (it should have the library's name) and move it to the "libraries" folder [inside your sketchbook](https://support.arduino.cc/hc/en-us/articles/4412950938514-Open-the-Sketchbook).

4. The library will automatically be installed and ready to be [included in a sketch](https://www.arduino.cc/reference/en/language/structure/further-syntax/include/).

> Note that adding a library to the "libraries" folder in the sketchbook will override other previously installed library versions.

---

## Further reading

* [Uninstall a library from Arduino IDE](https://support.arduino.cc/hc/en-us/articles/360016077340-Uninstall-a-library-from-Arduino-IDE)

* [Installing libraries in the Arduino IDE 1](https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries#importing-a-zip-library) on Arduino Docs

* [Installing libraries in the Arduino IDE 2](https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-installing-a-library) on Arduino Docs

* About [#include](https://www.arduino.cc/reference/en/language/structure/further-syntax/include/)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.