Hello,
It works with the I2C module connected to the LCD screen. But not with all of the Digital Pins obviously...
Instead of LiquidCrystal.h, try this one :
<LiquidCrystal_I2C.h>
with this library
<Wire.h>
And
Wire.begin(D6,D3); // SDA > D6 | SCL > D3 >>>CHANGE FOR YOUR PINS CONFIGURATION.<<<
IF IT DOESN'T WORK TRY TO SWITCH TO SCL > D6 | SDA > D3... ( I observed differences with NODEMCU V2 & V3...
Like this :
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // CHANGE the "0x27" ADRESS FOR YOUR SCREEN CONFIGURATION
void setup()
{
Wire.begin(D6, D3); // SCL > D3 | SDA > D6 | IF IT DOESN'T WORK TRY TO SWITCH TO SCL > D6 | SDA > D3... ( I observed differences with NODEMCU V2 & V3...
lcd.init(); // initialize the lcd
lcd.clear();
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("IT WORKS ! :D");
}
void loop()
{
}