av1610 lcd

has anyone else used these? i have one, and it's compatible with the hitachi controller, but i'm running into the problem that it only displays up to 8 characters. has anyone else run into this problem? it's not the code i'm using, it seems to be an issue with the lcd.

The right hand eight characters on a one line display usually need to be written as if they were on line two. Sounds odd, but its the way the memory is addressed on a one line chip. Try selecting the second line and writing some characters and see if you can see them on the right hand side of the display. If not, have a good search on google for 16x1 LCD display problems.

ok, thanks. what's the arduino code for that? i can't seem to find any examples. and typing (string2) doesn't work.

if you are using the LCD4bit library, use the cursorTo command. There is more info on the problem you describe here:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1170302661/0

thanks for that. i'm not using the 4bit lib, but i guess i could switch. i'm using the liquidcrystallib. still not sure how to get it to write on the second line. any ideas?

thanks again. this forum has been one of the quickest and most helpful i've ever been on.

also, i'm curious about the lcd.init() function. i can't find any info about adjusting this with variables, or even if it's possible. what i want to do is control two lcds from the same arduino/sketch. just vary the output destination. the simplest way, it seems, would be to vary the enable pin.

any idea if this is possible?

You could try to change setCursor to the following and see if it will print the right hand characters:

void LiquidCrystal::setCursor(int index){
int cmd = 128+index;
if(index > 7)
cmd+= 0x40; // chars 8-15 are on line 2
commandWrite(cmd);
}

sorry for such newbie questions, but,

what is setCursor? i'm now using the lcd4bit lib and when i copy your code in i assume it's not going to work. i can't find any other reference to it. i really want a way to automatically write a single line to all 16 characters. the ultimate end result is an installation that pulls twitter's public timeline and displays it on an lcd screen. i have code to pull twitters, now i'm just working on getting the lcd screen to function the way i want it to. thanks in advance.

setCursor is the function in the LiquidCrystal library you were first using. The function is called cursorTo in the LCD4bit library.

Did you read the thread linked in reply #3 above?

Don't feel too bad, I had similar frustration trying to get a 16x1 LCD working. When I realised that for a few dollars I could get a 16x2 display and these do not have the 8th char on line two issue, I threw my 16x1 in a drawer, plugged in the 16x2 and have not had a problem since.

Good luck!

i may just do that. it's really driving me nuts, plus i don't think it's going to work the way i want it to in the end. thanks again for all the help.