Fixed Libraries

This commit is contained in:
Emanuele Trabattoni
2024-06-23 15:26:02 +02:00
parent 6d210c0885
commit bc83b667f9
2 changed files with 4 additions and 4 deletions

View File

@@ -65,10 +65,10 @@ void LiquidCrystal_I2C::begin_priv(uint8_t dotsize) {
// according to datasheet, we need at least 40ms after power rises above 2.7V
// before sending commands. Nucleo can turn on way befer 4.5V so we'll wait
// 50
wait_ms(50);
wait_us(50000);
// Now we pull both RS and R/W low to begin commands
expanderWrite(_backlightval); // reset expanderand turn backlight off (Bit 8 =1)
wait_ms(1000);
wait_us(1000000);
// put the LCD into 4 bit mode
// this is according to the hitachi HD44780 datasheet
// figure 24, pg 46