@@ -119,15 +119,15 @@ void LiquidCrystal::begin(uint8_t cols, uint8_t lines, uint8_t dotsize) {
119
119
120
120
// we start in 8bit mode, try to set 4 bit mode
121
121
write4bits (0x03 );
122
- delayMicroseconds (4500 ); // wait min 4.1ms
122
+ delayMicroseconds (4400 ); // wait min 4.1ms
123
123
124
124
// second try
125
125
write4bits (0x03 );
126
- delayMicroseconds (4500 ); // wait min 4.1ms
126
+ delayMicroseconds (4400 ); // wait min 4.1ms
127
127
128
128
// third go!
129
129
write4bits (0x03 );
130
- delayMicroseconds (150 );
130
+ delayMicroseconds (150 ); // wait min 100μs
131
131
132
132
// finally, set to 4-bit interface
133
133
write4bits (0x02 );
@@ -137,11 +137,11 @@ void LiquidCrystal::begin(uint8_t cols, uint8_t lines, uint8_t dotsize) {
137
137
138
138
// Send function set command sequence
139
139
command (LCD_FUNCTIONSET | _displayfunction);
140
- delayMicroseconds (4500 ); // wait more than 4.1 ms
140
+ delayMicroseconds (4400 ); // wait min 4.1ms
141
141
142
142
// second try
143
143
command (LCD_FUNCTIONSET | _displayfunction);
144
- delayMicroseconds (150 );
144
+ delayMicroseconds (150 ); // wait min 100μs
145
145
146
146
// third go
147
147
command (LCD_FUNCTIONSET | _displayfunction);
@@ -176,13 +176,13 @@ void LiquidCrystal::setRowOffsets(int row0, int row1, int row2, int row3)
176
176
void LiquidCrystal::clear ()
177
177
{
178
178
command (LCD_CLEARDISPLAY); // clear display, set cursor position to zero
179
- delayMicroseconds (2000 ); // this command takes a long time!
179
+ delayMicroseconds (1800 ); // wait min 1.52ms
180
180
}
181
181
182
182
void LiquidCrystal::home ()
183
183
{
184
184
command (LCD_RETURNHOME); // set cursor position to zero
185
- delayMicroseconds (2000 ); // this command takes a long time!
185
+ delayMicroseconds (1800 ); // wait min 1.52ms
186
186
}
187
187
188
188
void LiquidCrystal::setCursor (uint8_t col, uint8_t row)
0 commit comments