I am using an ESP32 and interfacing with a 20x4 LCD (and yes it is 3.3V), using the 6-wire interface.
Now the following code will not work:
#include <LiquidCrystal.h>
LiquidCrystal lcd(12,14,27,26,25,23);
void setup()
{
lcd.begin(20, 4);
lcd.clear();
lcd.print("TEST");
lcd.setCursor(0,1);
lcd.print ("LCD with ESP32");
}
void loop(){}
But this will work:
#include <LiquidCrystal.h>
LiquidCrystal lcd(22,23,5,18,19,21);
void setup()
{
lcd.begin(20, 4);
lcd.clear();
lcd.print("TEST");
lcd.setCursor(0,1);
lcd.print ("LCD with ESP32");
}
void loop(){}
In the first one, have I used some pins I shouldn't have? Both compile fine and upload. I've probably missed something glaringly obvious. But all I did was use different pins and it was working fine.