Adding files to library

Hi,
I am a relatively new to Arduino. I tried to add the "keypad.h"to the arudino sketch . After opening the sketch I tried "Sketch>import library ". A drop down menu box appears but there is no "keypad " in it. Neither I am able to add the file "Keypad.h"to it . I request the experienced members to help me in understanding the process of importing new library into the sketch. Thanks in advance for your time.

(Nivar)

You need to download the files to the library folder of the arduino program folder
so in the folder called libraries you will have a folder called keypad, inside will be atleast keypad.h and keypad.cpp
then it should pop up to import and if not just add to the top #include <keypad.h>

The set-up is described here, in section "Contributed Libraries": Libraries - Arduino Reference

Hi friends,
I have gone through your posts and has done all of it as I understood it. But I am not able to import it to the library folder. Can anybody explain it with a typical simple example which I can duplicate. Sorry for my poor programming skills. Thanks for your time in advance.

(Nivar)

I have gone through your posts and has done all of it as I understood it. But I am not able to import it to the library folder.

When you use Sketch + Import library, there is a list of (header files in) libraries that you can include. Write down one of the names.

Then, close the IDE.

Then, use your operating system's file explorer capability to locate the name of the library that you wrote down. Study how the include file is positioned relative to the libraries directory/folder.

Replicate that relative positioning for the keypad.h file.

Restart the IDE. You will now be able to import the keypad library.

Without knowing what OS you are using, and what version of the IDE, and where YOU put the keypad.h file, that is all the help you are going to get.

Hi PaulS,
Thanks for the reply. I am using the Windows Vista home edition as the OS . I will be very very grateful if you can give an explanation how to do it in MS vista OS. Once again thanks for your time.

(Nivar)