Installing Libraries in MPIDE

As you all probably already know, MPIDE is a programming environment that I, and many other people, use to program Digilent’s chipKIT line of microcontrollers. Well, along with the pre-loaded libraries and examples that you can find when you download MPIDE, you can also upload your own libraries.

 

In fact, on the product pages of many of our Pmods or add on products (i.e. LED strips,) you will find libraries made specifically to facilitate connecting any of these products to a microcontroller.

 

When going through Instructables that use libraries in MPIDE, I realized that they show how to install a library in every Instructable. I figured why not just write one Instructable on installing libraries in MPIDE instead of explaining it again and again, so I did.

 

Here is the condensed version of the Instructable:

 

1. Download the library.

Most of the libraries are on the product page of the product they are designed to be used with. For example, the PmodJSTK
Most of the libraries are on the product page of the product they are designed to be used with. For example, the PmodJSTK.

The first step is to download the library. Libraries will come in condensed folders. Our Pmod libraries are located on the product pages for the Pmod.

 

2. Install the library in the libraries folder of the sketchbook location.

The libraries folder must be in the sketchbook location, for me that was in the documents folder.
The library’s folder must be in the sketchbook location. For me that was in the documents folder.

The next step is to install the library. To install the library you extract the condensed folder into a folder names libraries in the sketchbook location. You can find and change the sketchbook location in preferences.

 

3. Open a demo or use the library in your own sketch.

You can open demos that exist in the library from the file menu.
You can open demos that exist in the library from the file menu.

To open the demo go to File -> Sketchbook -> libraries->(library name)-> (demo name.).

 

You can import the library from the tools menu.
You can import the library from the sketch menu.

To open the use the library in your own sketch, go to Sketch -> Import Library -> (library name.).

 

This will add an include into your sketch which will allow you to use the library’s functions.

 

If you would like to view the full Instructable, you can find it here on Instructables.com.

Be the 1st to vote.

One Comment on “Installing Libraries in MPIDE”

  1. Buenas tardes… no me aparecen asi las cosas, imposible instalar una libreria de esa manera

Leave a Reply

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