LiquidCrystal_I2C.h no such file or directory

Hi all,

I want to make some changes to a project which I created a couple of years ago however it seems that I cannot build the original project anymore.

In my project I use a LiquidCrystal_I2C library. During compilation of the project I got a bunch of complile errors (see printscreen).

It seems that these errors are popping up because PlatformIO cannot find the header file. The linter reports “LiquidCrystal_I2C.h: no such file or directory” at the line where I include the header file.

I added the library dependancy to the platformio.ini file but with no succes.


platform = espressif8266
board = nodemcuv2
framework = arduino
upload_protocol = espota
upload_port =
upload_flags =
lib_deps =
	marcoschwartz/LiquidCrystal_I2C@ ^1.1.4

I’am currently using platformio version 6.1.11

Does anybody have an idea how to solve this issue ?

Thanks in advance!

You should no be naming the variable clock because this is a built-in function in time.h (Compiler’s standard library). Fix src/LCD_Display.cpp:11 and others accordingly.

Hi maxgerhardt,

Thanks a lot for your quick response. That solved my issue!