LiquidCrystal_I2C commands:

Error:

Arduino:1.8.19 (Windows 11 Insider Preview Build 26080 Canary), Kart:"Arduino Uno"





















C:\Users\subordie\Documents\Arduino\Ardino UNO Dersler\LRT\twoX16_i2c\twoX16_i2c.ino: In function 'void setup()':

twoX16_i2c:7:13: error: no matching function for call to 'LiquidCrystal_I2C::begin()'

   lcd.begin();

             ^

In file included from C:\Users\subordie\Documents\Arduino\Ardino UNO Dersler\LRT\twoX16_i2c\twoX16_i2c.ino:2:0:

C:\Users\subordie\Documents\Arduino\libraries\LiquidCrystal_I2C/LiquidCrystal_I2C.h:58:8: note: candidate: void LiquidCrystal_I2C::begin(uint8_t, uint8_t, uint8_t)

   void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS );

        ^~~~~

C:\Users\subordie\Documents\Arduino\libraries\LiquidCrystal_I2C/LiquidCrystal_I2C.h:58:8: note:   candidate expects 3 arguments, 0 provided

exit status 1

no matching function for call to 'LiquidCrystal_I2C::begin()'



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Using LiquidCrystal_I2C 1.1.1.
Code:

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

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



}

void loop()
{
  lcd.home();
  lcd.print("Hello world!");


}

Worked on LRT. (from turkey, Lezzetli Robot Tarifleri used Arduino IDE 1.6.5 and Windows 8.)
Can anyone solve this to me?

Welcome to the forum

There are at least 2, probably more, libraries named LiquidCrystal_I2C. My guess would be that you have installed one version and are using commands intended to be used with a different version

Look at the examples for the installed library to see how to use it

The error is indicating that begin() does not exist.
i.e. a function called begin with no argument.s
the begin function requires arguments.
i.e.
begin(cols, rows);

Alternatively, most of the LiquidCrystal_I2C libraries also have an init() function that you can call.

lcd.init();

That can be used instead of begin(cols, rows);

--- bill

already finished XD (i use lcd.init on a video i seed to begin lcd)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.