C code for a 16x2 LCD via I2C module

I bought a 16x2 character LCD and a I2C module for programming the LCD but I can’t a proper C code to make it work or get some information how to send commands to it. Can anyone please provide some info.

Google is your friend.

Search for I2C LCD and see what you find. So much you will have trouble reading it all.

Almost all 16x2 character LCDs use the Hitachi HD44780 controller chip, so you can
also search for “I2C LCD HD44780” and you will find Python code, C code, mostly
for Arduino and Raspberry Pi, but the interface from the I2C expander to the LCD is the same.

Example result:

Adafruit sells several I2C to LCD products and posts example code on github.

— Graham