LCD 16×2 have around 16 pins which needs to be connected to microcontroller in order to make it work. But by using an I2C extender, we only needs to connect 2 pins (SDA and SCL) to the microcontroller.
The writing procedure is same as mentioned in the beginning of the post i.e. START -> WRITE SLAVE ADDRESS -> WRITE REGISTER ADDRESS -> WRITE DATA -> STOP
Before setting the device in the master mode, make sure you have another device which is in slave mode. I have HC-06 which is always in the slave mode.
PIC16 is a microcontroller series from Microchip. It is not difficult for a beginner to learn but powerful enough to be used in high level applications…