Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Adafruit_CharLCD.py - Garbled text with 2ms delay for clear() and home() #2

@mmattozzi

Description

@mmattozzi

Hi--

I purchased the 16x2 LCD from your website and hooked it up as specified in your tutorial. Initially, I was having a lot of problems with the text being garbled on the screen. It seemed like there was a less than 50% chance of the text coming out correctly.

I increased the delayMicroseconds from 2000 to 3000 for the clear() and home() methods and this greatly reduced the likelihood of garbled text-- perhaps down to 1%.

According to the table in the posted doc for the LCD (http://adafruit.com/datasheets/TC1602A-01T.pdf), clear() and home() can take up to 2.16ms.

I should also mention that I've had best results always calling clear() then home() before message(). When I just call clear(), sometimes the first character is omitted. If I just call home(), things get real crazy. :)

So, you might want to increase the delayMicroseconds... there could be other users running into the same problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions