|
|
@ -82,8 +82,7 @@ void LiquidCrystal_I2C::begin(uint8_t cols, uint8_t lines, uint8_t dotsize) { |
|
|
|
// SEE PAGE 45/46 FOR INITIALIZATION SPECIFICATION!
|
|
|
|
// SEE PAGE 45/46 FOR INITIALIZATION SPECIFICATION!
|
|
|
|
// according to datasheet, we need at least 40ms after power rises above 2.7V
|
|
|
|
// according to datasheet, we need at least 40ms after power rises above 2.7V
|
|
|
|
// before sending commands. Arduino can turn on way befer 4.5V so we'll wait 50
|
|
|
|
// before sending commands. Arduino can turn on way befer 4.5V so we'll wait 50
|
|
|
|
if (_oled) delay(500); |
|
|
|
delay(50);
|
|
|
|
else delay(50);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Now we pull both RS and R/W low to begin commands
|
|
|
|
// Now we pull both RS and R/W low to begin commands
|
|
|
|
expanderWrite(_backlightval); // reset expanderand turn backlight off (Bit 8 =1)
|
|
|
|
expanderWrite(_backlightval); // reset expanderand turn backlight off (Bit 8 =1)
|
|
|
|