First of all you you will want to delete the setCursor instruction and move the print instruction to setup(). This will leave loop() blank between the brackets.Then you will want to read some of the hundreds of forum posts concerning I2C LCDs. In virtually any of the recent ones you will find recommendations to use the hd44780 library instead of whatever I2C library you are presently trying to use.Don
The basic problem is that each of the many "I2C" libraries out there is geared to a specific adapter (backpack). You have to find the specific library that matches your adapter and then you have to specify the correct address and various other parameters. Get any of these wrong and your device will not work.The hd44780 library works with virtually any adapter and figures out the other parameters for you.Don
Okay, I am getting confused what hd44780 library you are talking about ...
Here is the link to the hd44780 library package github page.It has information about the library, how to install it, and the i/o classes.See the main page for a summary, and the wiki for some additional information.https://github.com/duinoWitchery/hd44780The i/o class for i2c backpacks that use i/o expander chips like the PCF8574 is hd44780_I2Cexp--- bill