error "lcd.init"

i don't speak english so... be understanding please:

This is my code

#include <Wire.h>
#include "RTClib.h"
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
RTC_DS1307 RTC;
void setup () {
Wire.begin(); // Inicia el puerto I2C
RTC.begin(); // Inicia la comunicaci¢n con el RTC
RTC.adjust(DateTime(__DATE__, __TIME__)); // Establece la fecha y hora (Comentar una vez establecida la hora)
//el anterior se usa solo en la configuracion inicial
Serial.begin(9600); // Establece la velocidad de datos del puerto serie
lcd.init();
lcd.backlight();
 lcd.clear();
}
void loop(){
DateTime now = RTC.now(); // Obtiene la fecha y hora del RTC
  
Serial.print(now.year(), DEC); // A¤o
Serial.print('/');
Serial.print(now.month(), DEC); // Mes
Serial.print('/');
Serial.print(now.day(), DEC); // Dia
Serial.print(' ');
Serial.print(now.hour(), DEC); // Horas
Serial.print(':');

Serial.print(now.minute(), DEC); // Minutos
Serial.print(':');
Serial.print(now.second(), DEC); // Segundos
Serial.println();
lcd.setCursor(0,0);
lcd.print("D:");
lcd.print(now.year(), DEC);
lcd.print("/");
lcd.print(now.month(), DEC);
lcd.print("/");
lcd.print(now.day(), DEC);
lcd.print(" ");
lcd.setCursor(0,1);
lcd.print("T: ");
lcd.print(now.hour(), DEC);
lcd.print(":");
lcd.print(now.minute(), DEC);
lcd.print(":");
lcd.print(now.second(), DEC);
delay(1000); // La informaci¢n se actualiza cada 1 seg.
lcd.setCursor(0,0);
lcd.print("               ");
lcd.setCursor(0,1);
lcd.print("               ");

}

AND THIS IS THE ERROR:

C:\Users\RGA2\Music\Documents\Arduino\controlador_de_reloj\controlador_de_reloj.ino:10:32: warning: invalid conversion from 'int' to 't_backlighPol' [-fpermissive]

LiquidCrystal_I2C lcd(0x27,16,2);

^

In file included from C:\Users\RGA2\Music\Documents\Arduino\controlador_de_reloj\controlador_de_reloj.ino:9:0:

C:\Users\RGA2\Music\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:53:4: note: initializing argument 3 of 'LiquidCrystal_I2C::LiquidCrystal_I2C(uint8_t, uint8_t, t_backlighPol)'

LiquidCrystal_I2C (uint8_t lcd_Addr, uint8_t backlighPin, t_backlighPol pol);

^

C:\Users\RGA2\Music\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h: In function 'void setup()':

C:\Users\RGA2\Music\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:154:9: error: 'int LiquidCrystal_I2C::init()' is private

int init();

^

controlador_de_reloj:18: error: within this context

lcd.init();

^

exit status 1
within this context

PLEASE, HELP ME

When posting code, please use code tags. Please edit your post and add
** **[code]** **
before your code and
** **[/code]** **
after your code.

Please provide a link to the LiquidCrystal_I2C library that you use.

The usual call is lcd.begin(), not init().

The LiquidCrystal_I2C.h available through the library manager uses init().

void LiquidCrystal_I2C::init(){
	init_priv();
}

void LiquidCrystal_I2C::init_priv()
{
	Wire.begin();
	_displayfunction = LCD_4BITMODE | LCD_1LINE | LCD_5x8DOTS;
	begin(_cols, _rows);  
}

init() is also listed as a public function in the .h file. It calls a private function.

The OP has not yet posted a link to his library, but my guess it is not the one available through the library manager.

thanks, i can resolve this problem, just download other version of the library, but now I have a new problem, this code is for un RTC... and now the clock does not show the time, simply show a wrong number:
2165/165/165 165:165:85
2165/165/165 165:165:85
and repeat this number without advancing

Please run this i2c scanner program and verify that the RTC is seen on the bus by the arduino.

What address are reported back? You should see two or three--one for the lcd, one for the rtc, and sometimes a third address for an eeprom on the rtc module. DS1307 should be address 0x68. 0x50 will be an eeprom, and your lcd should be at 0x27 according to your sketch.

// I2C Scanner
// Written by Nick Gammon
// Date: 20th April 2011

#include <Wire.h>

void setup() {
  Serial.begin (115200);

  // Leonardo: wait for serial port to connect
  while (!Serial) 
    {
    }

  Serial.println ();
  Serial.println ("I2C scanner. Scanning ...");
  byte count = 0;
  
  Wire.begin();
  for (byte i = 8; i < 120; i++)
  {
    Wire.beginTransmission (i);
    if (Wire.endTransmission () == 0)
      {
      Serial.print ("Found address: ");
      Serial.print (i, DEC);
      Serial.print (" (0x");
      Serial.print (i, HEX);
      Serial.println (")");
      count++;
      delay (1);  // maybe unneeded?
      } // end of good response
  } // end of for loop
  Serial.println ("Done.");
  Serial.print ("Found ");
  Serial.print (count, DEC);
  Serial.println (" device(s).");
}  // end of setup

void loop() {}