PlatformIO has a quirk where if you don’t include a library in the main source file, it’s sub-dependencies are not found correctly. Please place a #include <LiquidCrystal_I2C.h>
in your src/main.cpp
(or similiar).
“Wire” is the I2C base library in the Arduino core, you should not install one from the PlatformIO registry for it. Remove the .pio
folder and remove any reference to an external Wire library pulled from the registry from the platformio.ini
. If anything, you can reference its usage by adding just Wire
to the lib_deps
, PlatformIO will find it in the libraries/
folder of the Arduino core then.