Forum >LCD4884 Shield and Arduino Mega 2560 does not work
ArduinoGeneral

LCD4884 Shield and Arduino Mega 2560 does not work

userHead swcng2001 2011-02-15 07:42:12 9074 Views8 Replies
I used the demo example LCD4884_menu and it worked on an Arduino Uno, but does not on an Arduino Mega 2560. I'm using the Arduino IDE on a Mac. Any ideas? I've made sure I'm compiling for the correct board.

Any suggestions will be welcome.

Thanks.
2012-07-30 17:56:27 Hi,


Did you download the library from the wiki or the product page? The link in the wiki had not been updated.


It is now. Try and download it again.
userHeadPic Hector
2012-07-29 03:10:14 Hello everibody :)

Is there a version of the library that works with Arduino IDE v1.0 and Mega2560?
The v0.2 of the lib works just with Arduino v0.23 :(

Thanks
userHeadPic Bonzarello
2011-05-07 03:26:12 Thanks Lauren, your library v0.2 got me up and going on my DFRduino Mega (ATmega1280).
On a separate note that I'm hoping is relevant enough to remain in this thread, my LCD4884 appears to have the contrast up too high, so it appears black but I can see the writing if I look at it from about 50deg above the screen.  Does anybody know how to lower the contrast? there doesn't seem to be anything like a trimpot on the board that allows this (the last LCD setup i had included a trimpot for contrast adjustment).
Thanks and keep up the good work!
Rusteze
userHeadPic rusteze
2011-03-03 23:27:14 :P

Hello, Javier.

You are correct. I found the issue of the library. And i have updated the library to solve the problem.
Now you can have the back light under control. Please install the new library.
:D

The link of the new library:[url=https://www.dfrobot.com/forum/index.php?action=dlattach;topic=52.0;attach=36]https://www.dfrobot.com/forum/index.php?action=dlattach;topic=52.0;attach=36[/url]
userHeadPic Lauren
2011-02-28 06:21:32 Thank you for the new library. It works fine for me.

Nevertheless, I haven't been capable of turning off the back light. I've tried passing HIGH and LOW to the function but the result is the same. I don't have the proper equipment to test it, but using an LED, it only glows very dimly.

Could this be because the UNO board, pin 7 (back light one) is a regular output, while in Mega2560 is a PWD one?
userHeadPic Javier
2011-02-23 00:26:16 I have tried to use the LCD4884 with the mega 1280. And the board works well with the library i modified.
So just try it.

The link of the library:[url=https://www.dfrobot.com/forum/index.php?action=dlattach;topic=52.0;attach=25]https://www.dfrobot.com/forum/index.php?action=dlattach;topic=52.0;attach=25[/url]

Good luck. ;)
userHeadPic Lauren
2011-02-19 16:21:50 Great! userHeadPic swcng2001
2011-02-16 20:02:32 Hi, :)

The library is hard-coded and just works for Arduino boards that use ATmega328 or ATmega168 chips, but not for Arduino boards based on '1280 or '2560 chips.

I will try to create a new library for Arduino Mega in the next week.

:D
userHeadPic Lauren