-->
Page 1 of 1

Controlling an LCD with an 8266

PostPosted: Fri Jun 03, 2022 2:37 am
by HoofHearted
I've created a couple of Arduino projects which drive an LCD using the I2C. They work fine. I'm just starting my first 8266 project and I can't get text to display on the LCD. So I guess it's my inexperience which is to blame. So on an 8266 do I need to do anything differently? Maybe I have to use a different LCD library? In this example, the lcd.backlight() command is working. So I know some communication is getting through. I'm using the the Arduino IDE and my board is set as NodeMCU 1.0(ESP-12E Module). I've tried the generic 8266 also.

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2);

void setup() {
lcd.init();
lcd.backlight();
}

void loop() {
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Hello");

delay(1000);

lcd.setCursor(0,1);
lcd.print("World");
delay(1000);
}

Re: Controlling an LCD with an 8266

PostPosted: Mon Jun 06, 2022 2:41 am
by HoofHearted
This is fixed now. The LCD Display I was using is not compatible with 3.3V even though the manufacturer states that it is. A different model of LCD Display works perfectly.