Go Down

Topic: Getting a 4x40 HD47780 LCD working? (Read 1 time) previous topic - next topic


Im doing a project and I needed a simple way to interface with an LCD. So I figured Id just wire up an arduino to the 4x40 LCD and have it act like a serial backpack. I turned to Arduino because I didn't want to spend more than an hour or two writing the code, and I wanted that time to mostly be spent writing a nice serial interface not dealing with the LCD!!!!

I wired my LCD up got it working with the liquid crystal library, but that wont support a full 4x40 screen. So I found liquid crystal enhanced/liquidcrystal440, on the Arduino playground, problem is this library wont compile. I get these errors

Code: [Select]
In file included from BareMinimum.ino:1:
C:\arduino-1.0.3-windows\arduino-1.0.3\libraries\Liquidcrystal440/LiquidCrystal440.h:95: error: conflicting return type specified for 'virtual void LiquidCrystal::write(uint8_t)'
C:\arduino-1.0.3-windows\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:48: error:   overriding 'virtual size_t Print::write(uint8_t)'

Also this library doesnt support 8 bit mode, since im going to dedicate an arduino set up just to this LCD, and a serial port, Id like to get the speed of an 8 bit display. Im really hoping someone can help me out as this LCD was kind of pricey, and it is to late for a smaller one.


You don't suppose that those errors have ever been encountered before, do you?

It does not appear that the version of the library you have has been updated for 1.0+ use. You get to!
The art of getting good answers lies in asking good questions.


Im doing a project and I needed a simple way to interface with an LCD. So I figured Id just wire up an arduino to the 4x40 LCD and have it act like a serial backpack.

Does your LCD module have two separate enable lines (i.e. it's actually two 40 x 2 display chips)? If so, I have a LiquidCrystal library that you can use.
Gentlemen may prefer Blondes, but Real Men prefer Redheads!


There's a library for that display in the playground... 2 X 24, 2 X 40... I used it once I have a couple of 2 X 24 displays I used it on.

--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard


Yes others have encountered this problem, i tryed the suggested fix and it didnt work.

Yes my display is dual hd47780 chips 4x40. I would love your working library. Will it handel 8 bit mode as the liquid crystal 440, does not. Also is there any documentation? My email is rwgast@lowlevel-logicdesign.com or a link here is fine to :). As I said im just looking to get this done and slap it in my project, i dont want to have to write or debug lcd drivers, this is why i picked Arduino for this simple add on component. I just plan to burn a dip chip then solder it on some pref board attached to the lcd via stand offs.


Ok so far 3 people have told me theres working 4x40 code out there, the only thing I could find on the playground was LiquidCrystalEnhanced which is what isnt working properly. If anyone has some code that makes using a two chip 48870 4x40 display easy to use id be really gratefull! A name of the library, a link anything

Go Up