Optrex 4x20 LCD witch HD44780 controller
Optrex 4x20 LCD witch HD44780 controller
Why can`t I get the LCD to print text on row 2 and 4 ?? I use a 8-bit interface and it works just fine to row 1 and 3. When I try to put 20 characters on row 2 or 4 they show up on the 5 left most positions on row 1?? Is ther a problem with the LCD8 code?
Re: Optrex 4x20 LCD witch HD44780 controller
Not exactly. All 2-row LCDs have the same start-of-row character addresses, while 4-row LCDs often do this 'on their own', based on the manufacturer and model. Therefore you'll have to do some experimenting, to determine where is the start-of-row, for each row on your LCD.murta wrote:Is ther a problem with the LCD8 code?
pizon
ok... I have just read the datasheet for the display and it doesn´t say anything about start-of-row addresses, but then again I´m not that technical . What I can see is that there are more curcuits on the back of the display than on a similar display with 16x2 characters. Both have HD44780 controllers. Maybe thats why it doesn´t work. On my display the extra IC components says OKI 5259.
Sometimes it's easier to just go try something than asking a lot of questions and spending a lot of time thinking about it Construct an experiment, and then see what works.murta wrote:So in theory to access the 2:nd row 1:st column, I might have to write LCD8_out(2 , 30 , text) or something ?
If you know what you're doing, you're not learning anything.
ok.. thx for the information. I tried to write to row 1 col 21 and that works just fine. The text prints out on row 3, so far so good. But when I try to write to row 1 col 41 it doesn´t display anything and not to r1 c61 either. I´m beginning to think that there might be someting wrong with my display and I will swap the display for another 4x20 and see if that works better.
In stead of using LCD_Out functions and having to use workaround line numbers why not use LCD_Cmd function and set the cursor position your self
look at the help file at the constants section so see what i mean there are constants for LCD_LINE_ONE etc. you could just use your own constants.
look at the help file at the constants section so see what i mean there are constants for LCD_LINE_ONE etc. you could just use your own constants.
Graham Ambrose