What’s this constructer supposed to do? When I look into the LiquidCrystal_I2C library is see
A constructor that wants the I2C address, and number of columns and rows. And there’s no other constructor which takes that many arguments as your code shows.
If you have code which calls into another constructor then you’re probably using a different library. Which one do you want / have you installed in the Arduino IDE?
Just one problem - the LiquidCrystal library (at least the one by Arduino) don’t have direct support for I2C displays, and I can’t find one that does. Am I missing something?
The library name is indeed double. PIO also tells you this during installation.
C:\Users\Maxi\.platformio\platforms>pio lib --global install LiquidCrystal
Library Storage: C:\Users\Maxi\.platformio\lib
Library Manager: Installing LiquidCrystal
Library Manager: Warning! More than one package has been found by LiquidCrystal requirements:
- bitbucket-fmalpartida/LiquidCrystal @ 1.5.0
- arduino-libraries/LiquidCrystal @ 1.0.7
Library Manager: Please specify detailed REQUIREMENTS using package owner and version (showed above) to avoid name conflicts
Library Manager: LiquidCrystal @ 1.5.0 has been installed!
so what you’d actually want to do is to delcare
lib_deps =
bitbucket-fmalpartida/LiquidCrystal
(possible since PIO 5.0.0) to make it unambigious. You’ll then receive the library with the correct code.
(You also already receive the correct library since as you can see it autochoose bitbucket-fmalpartida/LiquidCrystal @ 1.5.0 for me when saying LiquidCrystal)