Arduino LiquidCrystal error

hello i need to try my new Lcd screen but when i download LiquidCrystal library,i get a #include <LiquidCrystal_I2C.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: LiquidCrystal_I2C.h: No such file or directory

this error.I read a form,one man said its seem like a OneDrive problem(before my file in OneDrice) and i change to Download.But now,i get excact error.I sure i download LiquidCrystal library.Can you guys help me?

Welcome to the forum

As your topic does not relate directly to the installation or operation of the IDE it has been moved to the Programming category of the forum

Where exactly is the file named located on your PC ?

Please post the full path to it

You may indeed have downloaded the LiquidCrystal library, but the sketch is looking for the LiquidCrystal_I2C library. A completely different beast.

There are two variations of the display, one with a backpack that needs 2 wires plus power. The include for that is LiquidCrystal_I2C.h, and the other has no backpack so many more wires and the include is LiquidCrystal.h.
That is two different libraries by the same names.


C:\Users\Asus\OneDrive\Документы\Arduino\libraries\LiquidCrystal_I2C here.

Hi @helloimprogrammer. Unfortunately there is a bug in Arduino IDE that causes it to not recognize libraries when they are installed under a path that contains non-ASCII characters (e.g. Документы).

The workaround is to change the location where libraries are stored by Arduino IDE to one that is under a path without any non-ASCII characters. I'll provide instructions you can follow to do that:

  1. Select File > Preferences... from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Set the path in the "Sketchbook location" preference to a location that does not contain any non-ASCII characters in its path.
  3. Click the "OK" button.
    The "Preferences" dialog will close.
  4. Move the contents of the folder at the previous path of the "Sketchbook location" preference (C:\Users\Asus\OneDrive\Документы\Arduino) to the new location.

Thanks for helping.I solved myself

You are welcome. I'm glad if I was able to be of assistance.

Regards, Per

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