Author
Topic: LCD problem (Read 4330 times)

I got a couple of used lm016l LCDs http://pdf1.alldatasheet.com/datasheet-pdf/view/146552/HITACHI/LM016L.html free at a robotics meeting. I tried hooking one of them up to my ATmega168 using the code and schematic from here http://www.pocketmagic.net/?p=447 i modified the makefile for the ATmega168. All the "boxes" on the first line of the lcd light up but that's it. I tripled checked my connections so I'm assuming it's a programming problem.

Finally got around to connecting the other LCD display, it does the same thing the first one did. I then disconnected everything but power and ground (and the pot), and it still did the same thing. If anyone with an HD44780 LCD screen they know works would test this guys library: http://www.pocketmagic.net/?p=447 (the one I'm using) that would be great!

when you get the message undefined refference to some function, this typically means you wrote a function in a .c file, which is recognozed, but the header file doesn't correlate. Example you forget the function prototype, or you don't link your .c file to the appropriate header file.

You can send me your project folder and I can see if I can get it to compile.

well I found an error on my part I used LCD.h for the reference to the header file at8LCD , but that didn't fix the problem. I noticed you were using your own makefile, so for the hell of it I usde the gcc self generating one and everything worked. I also change main to

before your code was reaching the end of main which should never happen. Here is the corrected version. Just go into configuration options generate to makefile for your specific device/ settings, and compile. That should do it.