Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

LCD HD44780 the cursor is displayed inside the character

2 posters

Go down  Message [Page 1 of 1]

feri



LCD HD44780 the cursor is displayed under the character, and the blink function does not make the cursor blink but alternates the cursor with the character above and a black rectangle if the cursor is active otherwise it alternates character with a black rectangle.
I don't have the display but I tried with another simulator and saw some videos on youtube.
https://www.youtube.com/watch?v=Malqv24jFoQ

Greetings
Giordano

arcachofo

arcachofo

Can you provide your code?

It is working OK for me:

Code:
void setup()
{
  lcd.begin(16, 2);
  
  lcd.setCursor( 0, 0 );
  lcd.print("NO CURSOR");
  delay(2000);
  
  lcd.cursor();
  lcd.setCursor( 0, 1 );
  lcd.print("CURSOR");

  delay(2000);
  lcd.blink();
}

LCD HD44780 the cursor is displayed inside the character  Lcdcur10

feri



From the tests with another simulator and video, the display should show as in the image below.
It's not a problem it can go too so just know it displays a little differently.
Greetings
Giordano
Attachments
LCD HD44780 the cursor is displayed inside the character  Attachmentlcdcur1.png
You don't have permission to download attachments.
(30 Kb) Downloaded 0 times

arcachofo

arcachofo

Thanks for the pictures, Now I understand:

- Cursor position is wrong: should be below the character.
- Blink color is wrong: should be black.
- In adition blink speed is too slow.

Hopefully solved at Rev 218.

feri



In the repository:
https://bazaar.launchpad.net/~arcachofo/simulide/simulide_0.4.14/revision/218?start_revid=218

the option download tarball does not work gives the error:

502 Bad Gateway
The server returned an invalid or incomplete response.

Greetings

arcachofo

arcachofo


the option download tarball does not work gives the error:

502 Bad Gateway
The server returned an invalid or incomplete response.
Didn't know this option even existed.
Did it work before?

In any case the best way is to keep a copy of the repository:
bzr branch lp:simulide/0.4.15

And update it whenever you want:
bzr pull

feri



The new display shows the black blink rectangle instead of the user-defined characters.
Greetings

I used the following code for testing:
Attachments
LCD HD44780 the cursor is displayed inside the character  AttachmentlcdBlink.zip
You don't have permission to download attachments.
(1 Kb) Downloaded 2 times

arcachofo

arcachofo

The new display shows the black blink rectangle instead of the user-defined characters.
Greetings
Sorry, there is a missing line.

In hd44780_base.cpp, Hd44780_Base::paint, around line 325:

Code:
if( char_num < 8 )                        // CGRam Character
{
    charact = m_fontImg.copy( 0, 0, 10, 16 ); // <=====  MISSING LINE
    int addr = char_num*8;

    for( int y=0; y<14; y+=2 )

Anyway I did some other optimization.

This issue should be solved at Rev 221.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum