This video contains an example of lcd i2c with stm32cubex and keil. LCD 16×2 has i2c module (PCF8574). You may download both the library and source code below.
Notes:
- Pin connections; VCC to 5V, GND to GND, SCL to SCL pin, SDA to SDA pin on your board.
- PCF8574 Module i2c address can be changed by using the A0, A1 and A2 pins on the module, the default address for the module used in the video is 0x4E.
- Check the recommended lcd driver voltage, and further information in your lcd’s datasheet and module’s datasheet.
| <<Source Code>> | Download |