Hello everyone,
I am follow the stuff at :
I follow the code given to upload to my NodeMCU that connected to I2C LCD 20X4.
I have modify slight the code to cater for the LCD size changes and LCD address. Here the codes:
//********************************************************************************************************************
#include <LiquidCrystal_I2C.h>
// Construct an LCD object and pass it the
// I2C address, width (in characters) and
// height (in characters). Depending on the
// Actual device, the IC2 address may change.
LiquidCrystal_I2C lcd(0x27, 20, 4);
void setup() {
// The begin call takes the width and height. This
// Should match the number provided to the constructor.
lcd.begin(20,4);
lcd.init();
// Turn on the backlight.
lcd.backlight();
// Move the cursor characters to the right and
// zero characters down (line 1).
lcd.setCursor(5, 0);
// Print HELLO to the screen, starting at 5,0.
lcd.print(“HELLO”);
// Move the cursor to the next line and print
// WORLD.
lcd.setCursor(5, 1);
lcd.print(“WORLD”);
}
void loop() {
}
//Sketch end here***********************************************
But after compiled and upload successfully to NodeMCU, the I2C LCD does not show any text, only show the backlights.
I connect the same I2C LCD to Arduino UNO, it is working, can display text.
Any advice ?
Thank you in advance.
Kam