4 bit LCD library and Hitachi HD44780 compatible display

floresta:

modified above post to reflect the questions

This is really not a good procedure since the reasons for my original questions are now no longer part of the thread. It makes me look like an idiot and it makes it hard for anyone who reads this in the future to follow the entire troubleshooting procedure.

Your answer to #6 does not mention anything about the second row of information. Did anything appear? Were there extra spaces?

sry i only but connected ones here are the non connected ones

I can't believe that your display shows anything with pins 3 and/or 5 floating.

Don

sry for the modification i havent posted much here.

as for second row i did not send anything to second row in the test

now it get interesting

first i changed the code to

lcd.begin(20, 2);
  // Print a message to the LCD.
  //lcd.setCursor(0, 0);
  lcd.print("hello, world!");
  lcd.setCursor(0, 1);
  lcd.print("byebye, world!");

this resulted in the first line still messed up but the second line perfect

next changed to

lcd.begin(20, 2);
  // Print a message to the LCD.
  lcd.setCursor(0, 0); //first line
  lcd.print("hello, world!");
  lcd.setCursor(0, 1); //second line
  lcd.print("byebye, world!");

this resulted in first line perfect and second line with spaces between each character sent