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

Nishant's picture


Joined: Sep 12, 2018

Replies: 0
error: no matching function for call to 'LiquidCrystal_I2C::begin()'
August 2, 2019 - 5:23pm

hey all, i am trying to interface 16x2 LCD display with ESP8266 NodeMCU using I2C shield of 16x2 LCD display. I am getting following error:

Arduino: 1.8.8 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Users\nishant\AppData\Local\Temp\arduino_modified_sketch_827962\sketch_apr02a.ino: In function 'void setup()':

sketch_apr02a:15:13: error: no matching function for call to 'LiquidCrystal_I2C::begin()'

   lcd.begin();                    // start lcd 


In file included from C:\Users\nishant\AppData\Local\Temp\arduino_modified_sketch_827962\sketch_apr02a.ino:5:0:

C:\Users\nishant\Documents\Arduino\libraries\LiquidCrystal_I2C-master/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\nishant\Documents\Arduino\libraries\LiquidCrystal_I2C-master/LiquidCrystal_I2C.h:58:8: note:   candidate expects 3 arguments, 0 provided

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

can you please elaborate why i am getting this error. because i am not finding any mistake in program. 
Ferry's picture


Joined: Sep 20, 2018

Replies: 8
error: no matching function for call to 'LiquidCrystal_I2C::begi
August 2, 2019 - 5:39pm

i can surely say that this is problem of library you have currently in your arduino library folder. the "no matching call" error mostly arrive because the function you are trying to access is not defined in the library you have right now installled. 

Also we have faced the problem when using i2c library for 16x2 LCD. actually there are multiple libraries available with the same name as  "LiquidCrystal_I2C.h" or sometime It is older version of library installed, so when people use wrong libraries they get these library.

The simple solution for this problem is tto install correct library and delete existing libraries for i2c 16x2 LCD. i have used one libarry which solved my problem you can try this one. the link is

this library is especially for esp8266 nodemcu. delete all libraries and install the new library from above link. connect the standard i2c wiring with node mcu and lcd. and run following example:


#include <LiquidCrystal_I2C.h>

#include <Wire.h>

LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() {


Wire.begin(D2, D1);



lcd.print("Hello I2C LCD");


void loop() { // do nothing 


it should solve your problem.