20x4 LCD Screen only prints to line 0 and 2...

http://web.alfredstate.edu/weimandn/lcd/lcd_addressing/lcd_addressing_index.html

The above reference tells you how the memory on board the LCD maps into screen positions.

There are two ways to get around the 1324 problem:

  1. Only print short messages that you carefully plan so they don't ever go on to the next line. Use setCursor to move among lines, which always work.
  2. Write a routine to treat a long message so it splits the long message into 20-character pieces and print then setCursor and then print.