LiquidCrystal_I2C

i have theese erros when i compile my skech:

exit status 1
‘POSITIVE’ was not declared in this scope

the command is:

LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

Any one can explain me what is the error?

here is the full program:

//Arduino Misuratore di potenzza e corrente elettrica con SCT-013-030

//Per il corretto funzionamento istallare la libreria EmonLib

#include “EmonLib.h”
#include <Wire.h> // Libreria wire già presente in Arduino ide
#include <LiquidCrystal_I2C.h> // Libreria display I2C

LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

EnergyMonitor emon1;

//Inserire la tensione della vostra rete elettrica
int rede = 230.0; // Italia 230V in alcuni paesi 110V

//Pin del sensore SCT su A1
int pin_sct = 1;

void setup()
{
lcd.begin(16, 2);//Inizializzazione display
lcd.clear();
Serial.begin(9600); //Apro la comunicazione seriale
//Pin, calibrazione - Corrente Const= Ratio/Res. Burder. 1800/62 = 29.
emon1.current(pin_sct, 29);
//Informazioni iniziali display
lcd.setCursor(0,0);
lcd.print(“Corr.(A):”);
lcd.setCursor(0,1);
lcd.print(“Pot. (W):”);
}

void loop()
{
//Calcolo della corrente
double Irms = emon1.calcIrms(1480);
//Mostra il valore della Corrente
Serial.print("Corrente : ");
Serial.print(Irms); // Irms
lcd.setCursor(10,0);
lcd.print(Irms);

//Calcola e mostra i valori della Potenza
Serial.print(" Potenza : “);
Serial.println(Irmsrede);//Scrivo sul monitor seriale CorrenteTensione=Potenza
lcd.setCursor(10,1);
lcd.print(” ");
lcd.setCursor(10,1);
lcd.print(Irmsrede,1); //Scrivo sul display CorrenteTensione=Potenza

delay(1000);
}

Any one can explain me what is the error?

There is more than one LiquidCrystal_I2C library. The code you have is not for the library you have.

You may try the following codes with this library and check that the LCD has turned on with the message Forum. Please re-try with address 0x3F if it is not working with address 0x27. If none of the address working, execute the addressScanProgram to find the address of the I2CLCD.

#include<LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() 
{

  lcd.init();
  lcd.backlight();
  lcd.setCursor(0, 0);
  lcd.print("Forum"); 
}

void loop() 
{

}