Let's discuss a small topic today. As a developer, we need to copy codes from the internet sometimes. I strongly do not recommend that. But for advanced projects, we need a reference. Most of the advanced project codes are developed with library functions. When we use that code, we need to install or add that particular library to Arduino IDE.
Method 1Install library with Library Manager
There are different methods for installing the library in Arduino IDE. It depends on the availability of library files. But the first priority is "Library Manager"
To install the library with Library Manager, open Arduino IDE and then go to Sketch > Include Library > Manage Libraries or press Ctrl+Shift+I on windows PC. Make sure your computer is connected to the internet.
Next search for your library on the search bar on this Library Manager window. Then select the version you wanted. And finally, click the install button. For example, I'm adding the "NewPing" library here. You can see that in the third image. After that close the "Library Manager" Window.
Method 2Adding ZIP library
The next method is adding a ZIP library. We can use this method when the library file is available in ".zip" format. You can get the library files by searching (surfing) on the internet. After getting the file, download it to a known location on your computer. Then open Arduino IDE and go to Sketch > Include Library > Add.zip library.
Then navigate to the location (You downloaded the file). And open it. After successful installation, you'll get a message that "Library added to your libraries. Check include library menu".
Note: DON'T EXTRACT THE ZIP FILE
Method 3This method is for advanced users. Download the.ZIP file and directly extract the file to the library folder (Commonly in "Documents > Arduino > libraries").
Instagram : five_volt_player
Github : akshayjoseph666
Contact : akshayjoseph666@gmail.com
Other Articles : Click Here
Comments
Please log in or sign up to comment.