PlatformIO Community

No matching function for call to 'LiquidCrystal_I2C::begin()'_ESP8266

Hello everybody,
I’m working with sensor SCT-013 with ES8266MOD but I try to compile and all time PlatformIO IDE give me the same error:
no matching function for call to ‘LiquidCrystal_I2C::begin()’
Could you help me, please?

Below the code in PlatformIO


//SCT-013-030
#include <Arduino.h>
#include <EmonLib.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
EnergyMonitor emon1;
float K=0.02;

void setup()
{
lcd.begin();
lcd.backlight();
emon1.current(A0, 30);
}

void loop()
{
double Irms = emon1.calcIrms(1480)*0.95; // Calculo Irms
lcd.print(“P(Watios):”);
lcd.print(Irms * 230.0);
lcd.println(" W");
lcd.setCursor(0, 1);
lcd.print("I(rms): “);
lcd.print(Irms);
lcd.print(” A ");
lcd.setCursor(0, 2);
lcd.print(“Euros (h):”);
lcd.print((Irms * 230.0)*K);
lcd.home();
delay(2000);
}

Sorry.

I have my mistake.

.
.
.
void setup()
{
lcd.begin(16,2); // now ok before lcd.begin()
lcd.backlight();
emon1.current(A0, 30);
}

:sweat_smile: