jimminy,
Thank you so muchfor sending that code file!!!!!
I bought 2 displays from 2 different places. they both externally looked identical and I assumed that they were the same.
I wrote code to get the first one going. but when I plugged in the other LCD it just would never do anything. so I wrote on the top of the screen with marker "BAD" and put it aside. I figured I would use it for a size model.
Then yesterday I came across this site and this post. I ported over your code to my Mega32. Tried it out on my first display and things went well. in the port I noticed that there are 2 types of these displays and I wondered if maybe the other display was the other controller. So I commented in that code and gave it a whirl. I had to change 2 lines of code for the contrast setting, I think it was 0x05 for the first call and 0x03 for the second. then it was perfect.
Just wanted to say thanks for saving me my LCD from the scrap heap. Now if I can only get this dam magic marker off the screen