I am trying to use a LCD Display 20x04 with a DevKitV4 Wrover-B, but I am having no luck.
I have followed this link: https://randomnerdtutorials.com/esp32-e ... duino-ide/
SDA to GPIO 21
SCL to GPIO 22
I've used this library: https://github.com/johnrickman/LiquidCrystal_I2C
And here is a simple code that doesn't work:
Code: Select all
#include <Arduino.h>
#include <LiquidCrystal_I2C.h>
// LiquidCrystal_I2C lcd(0x27,16,2);
LiquidCrystal_I2C lcd(0x3F,20,4);
void setup() {
Serial.begin(115200);
delay(500);
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(3,0);
lcd.print("Hello, world!");
lcd.setCursor(2,1);
lcd.print("Ywrobot Arduino!");
lcd.setCursor(0,2);
lcd.print("Arduino LCM IIC 2004");
lcd.setCursor(2,3);
lcd.print("Power By Ec-yuan!");
}
void loop(){
}
The LCD outputs gibberish with both 0x27 and 0x3F.
Does anybody has any idea ?
Thank you !