Adjusted timing on clear and home calls to be more generic, it seams that some LCDs need a longer time to execute the command.

resolves #5
This commit is contained in:
FMC
2011-11-19 12:24:41 +01:00
parent 6734df3b1a
commit c69322f2cb
3 changed files with 3 additions and 7 deletions
+2 -2
View File
@@ -61,13 +61,13 @@ LCD::LCD ()
void LCD::clear()
{
command(LCD_CLEARDISPLAY); // clear display, set cursor position to zero
delayMicroseconds(1500); // this command is time consuming
delayMicroseconds(1700); // this command is time consuming
}
void LCD::home()
{
command(LCD_RETURNHOME); // set cursor position to zero
delayMicroseconds(1500); // This command is time consuming
delayMicroseconds(1700); // This command is time consuming
}
void LCD::setCursor(uint8_t col, uint8_t row)