Contents

How to Add Arduino Library in PlatformIO IDE Manually

Introduction

Sometimes you cannot find the desired library in the internal library of Platform-IO. In this case, you have to manually add the library to your project.
In this tutorial, we will cover how to manually add a library to Platform-IO step by step.

Platform-IO IDE

Installing New Library in PlatformIO, Step 1: Library Download

First, download the desired library.

Installing Library (Step 1)

Installing New Library in PlatformIO, Step 2: Finding Library Location

Using the “Reveal in File Explorer” command, find the library folder of your project.

Installing Library (Step 2-1)
Installing Library (Step 2-2)

Installing New Library in PlatformIO, Library Copy

Now, copy the library folder to the “lib” folder.

Installing Library (Step 3-1)
Installing Library (Step 3-2)

After that, you can see the added files in VS code.

Installing Library (Step 3-3)

Finally, you can use the desired library in your code by adding the “#include” command.

Liked What You See?​
Get Updates And Learn From The Best​

Leave a Reply

Your email address will not be published. Required fields are marked *