chipKIT® Development Platform

Inspired by Arduino™

LCDS.h library

Created Tue, 04 Mar 2014 19:05:01 +0000 by nosleep


nosleep

Tue, 04 Mar 2014 19:05:01 +0000

Hi!

I'm new to the chipkit platform, and I've only worked with arduino before. I now have a chipkit uC32 board, and a digilent PMOD CLS LCD. I have downloaded the required files, the LCD Demo and the libraries, and tried to integrate the library in MPIDE. It doesn't seem to recognize its existence. I was wondering if you have enconutered related issues and if so, how did you solve them?

Thank you for your help!

~ovs


Jacob Christ

Wed, 05 Mar 2014 07:08:12 +0000

Can you provide some links to the code or up load it in a message? What directories are you putting your files in? Also, what version of MPIDE are you using?

Jacob


nosleep

Thu, 06 Mar 2014 07:13:24 +0000

Sure. I was trying to test this LCD Pmod from digilent: http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,401,473&Prod=PMOD-CLS I am using MPIDE 20130715.

Below the pictures, there is a Support Documents Section. One of the downloadable documents is this DSD-0000347 (please refer to attached picture). It contains the libraries for the module and an example that is supposed to run in mpide. I will paste the code contained in the example is also attached, as it is. The only error I get is LCDS.h no such file or directory. I have tried adding the library as a third party library but to no avail.

Thank you for your help, ~nosleep


Jacob Christ

Sun, 09 Mar 2014 20:36:03 +0000

What error message do you get? I get the following:

sketch_mar09a.cpp:38:20: fatal error: Bounce.h: No such file or directory
compilation terminated.

Also, something else that can be quite confusing. The LCDS library needs to go in the Documents\mpide\libraries directory in a directory called LCDS. If you leave it in the directory that it was unzipped as it might not work.

Bounce.h appears to be some kind of library for denouncing switches.

This I do not know where it comes from, but its not included with chipKIT. There is an ardunio library I found here by this name:

https://github.com/thomasfredericks/Bounce-Arduino-Wiring

Jacob


nosleep

Mon, 10 Mar 2014 17:08:26 +0000

I have followed Jacob Christ's indications regarding the form of the folder LCDS... i still get this error. It's still a step forward from not recognizing its existence. It's supposed to work, seeing it's on Digilent's site and whatnot, but it doesn't.

LCDSDemo.cpp:36:18: fatal error: LCDS.h: No such file or directory compilation terminated.

Again, thank you all for your help :).


Jacob Christ

Mon, 10 Mar 2014 18:41:11 +0000

Your current error is probably due to the library located in the wrong directory.

I put the libs here:

C:\Users\user\Documents\mpide\libraries\LCDS\

Jacob


nosleep

Mon, 10 Mar 2014 20:35:03 +0000

Should I change the sketchbook to point there then?

Later Edit: I should maybe also mention that I didn't separate the .cpp file and the .h or any of the original files in the downloaded document. Should I?


majenko

Mon, 10 Mar 2014 20:43:22 +0000

You should follow the Arduino instructions for manual installation of libraries (note that MPIDE doesn't support the automatic installation option).

[url]http://arduino.cc/en/Guide/Libraries[/url]


KeithV

Tue, 11 Mar 2014 15:19:17 +0000

Here is what we found...

The demo for LCDS library uses Bounce library, in order to de-bounce the buttons. In the reference manual for LCDS library it is written: " Bounce library files: Bounce.h is a file of a standard Arduino library called Bounce. The two buttons are debounced using the functions defined by the Bounce library. This library is not included in the MPIDE by default; it can be downloaded from: http://www.arduino.cc/playground/Code/Bounce "

Unfortunately the above mentioned link now leads to the current version of Bounce library, called Bounce2, which is not compatible with the one used for this demo and therefore can't be used. The correct link for Bounce library is http://playground.arduino.cc/uploads/Code/Bounce.zip

So the solution to the user's problem is to download Bounce from the above mentioned link, placing the Bounce folder (that contains library files) in the standard MPIDE libraries folder.


nosleep

Wed, 12 Mar 2014 18:42:44 +0000

I've managed to integrate the LCDS library into MPIDE by putting the folder I've downloaded (shown in the image I've attached to one of my first post here) in ...mpide/hardware/pic32/libraries AND I've also copied it to the libraries folder. I just thought that if anyone has such issues they can refer to this folder.

Thank you for all the help and for the bounce library.

~nosleep


Jacob Christ

Thu, 13 Mar 2014 14:55:38 +0000

I've managed to integrate the LCDS library into MPIDE by putting the folder I've downloaded (shown in the image I've attached to one of my first post here) in ...mpide/hardware/pic32/libraries ~nosleep

Though it will work where you put it, it is not the correct location. The reason why is that if you upgrade mpide then this location will be gone, while the libraries folder in your sketchbook folder will remain. This was a bit confusing to me at first as well. Also, I think an issue that lends to this confusion is that although the mpide directory is created automatically the libraries directory is not.

Jacob


nosleep

Fri, 14 Mar 2014 10:00:55 +0000

That's right, it's pretty confusing.

I stumbled upon this little trick because I really didn't know what to do anymore. I've tried creating the libraries directory but it still didn't work. I guess every time I update MPIDE I'll have to integrate the libraries.?