- Fri Jun 03, 2022 2:37 am
#94692
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);
}