text: 20x4 i2c lcd lines out of order.
  Posted: Mon Feb 18, 2013 10:06 pm
  I've been working with this 20x4 i2c LCD from Sainsmart (i2c board is branded that, LCD board is labeled J204A) The problem I am having is when I write out to it, if the line is over 20 characters it doesn't flow over onto the next line. It skips a line (Attached image shows) and I'm not entirely sure why. The driver I'm using is basically the Arduino driver converted to python by an Amazon reviewer. Here is the code I've been using, any help is appreciated.
  i2c_lib.py:
  i2c_lib.py:
  lcddriver.py:
  Code: Select all)
  lcd.py:
  Code: Select all
  import i2c_lib from time import * # LCD Address ADDRESS = 0x3f #)
  Code: Select all
  import lcddriver from time import * lcd = lcddriver.lcd() lcd.lcd_display_string("11111111111111111111222222222222222222223333333333333333333344444444444444444444", 1)