How to Install a Library in MPIDE
by Commanderfranz in Circuits > Microcontrollers
2203 Views, 7 Favorites, 0 Comments
How to Install a Library in MPIDE

MPIDE is a programming environment made for the Arduino compatible 32 bit microcontrollers in the chipKIT line. To add functionality to these microcontrollers, you can use Pmods, or LED strips. To make these easier to use libraries were created.
This instructable goes through all of the steps in installing a library for use in MPIDE.
Most likely you would be using a library if you are using a Pmod or LEDs with a chipKIT product. The libraries are located on their respective product pages.
Download the Library

The first step is to download the zip file of the library to your computer.
Obtain Sketchbook Location

Open MPIDE
Go to File -> Preferences
Take note of your sketchbook location
Add a Libraries Folder

Open the sketchbook location on your computer.
Add a libraries folder.
Install the Library

Extract the library into the libraries folder that you just created.
View Library

You can now see the folder that contains the library.
Open a Demo

If the library contains a demo of how to use it, you can open this from MPIDE.
Go to File -> Sketchbook -> libraries -> (library name) -> (demo name)
Using the Library in Your Own Sketch


You can also use the library in your own sketch.
To import the library to your own sketch go to Sketch -> Import Library -> (Library name)
Alternatively, you can also just type the include yourself.
Use the Libraries
Now that you know how to install a library, go check out our extensive collection of Pmods and their libraries.