How to Install a Library in MPIDE

by Commanderfranz in Circuits > Microcontrollers

2188 Views, 7 Favorites, 0 Comments

How to Install a Library in MPIDE

1 - import library.jpg

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

product page.JPG

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

Obtain Sketchbook Location

1 - sketchbook location.JPG

Open MPIDE

Go to File -> Preferences

Take note of your sketchbook location

Add a Libraries Folder

2 - create libraries.JPG

Open the sketchbook location on your computer.

Add a libraries folder.

Install the Library

3 - extract in libraries.JPG

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

View Library

3.1 - extract in libraries.JPG

You can now see the folder that contains the library.

Open a Demo

4 - open demo.jpg

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

1 - import library.jpg
2 - imported library.JPG

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.