I2C LCD Compile error

hello Guys

im trying to use I2C 16x2 LCD but when compiling the code i have got the error

Class LiquidCrystal_I2C has no member named 'init'

i have included the LiquidCrystal_I2C library & used lcd.init as the eamples mentioned

any idea will be good

thanks in advance

Load the HD44780 library using the library manager in the IDE and study the examples provided with it.

There are multiple libraries named LiquidCrystal_I2C, or that have a class named LiquidCrystal_I2C. Likely your sketch was written for a different library than the one you have installed. You could likely solve this by figuring out which library your sketch was written for and installing that library (you will likely need to uninstall the current library first).

The other option is to start fresh and use the library recommended by Paul__B. I'm no expert in the multitude of Arduino libraries available for I2C LCDs, but that one does seem to be highly regarded by the community. I've used it with good results, so I think it's a good choice.