Skip to content

Latest commit

 

History

History
61 lines (32 loc) · 2.1 KB

Add-a-library-to-Arduino-IDE.md

File metadata and controls

61 lines (32 loc) · 2.1 KB
title
Add a library to Arduino IDE

Libraries are a collection of code that provide extra functionality for use in sketches, for example when working with hardware or manipulating data.

Learn how to add a library to Arduino IDE.


Using the 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

    IDE 2 Library Manager Icon, search box, and Install button highlighted

  5. Wait for the installation to complete.


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.


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.

  4. Restart Arduino IDE.

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


Further reading