Library that allows you to print some info on a 16x2 LCD equipped with PCF8574 I2C I/O expander.
At the current moment it support only HAL driver to deal with I2C interface.
Toolchain - IAR EWARM v9.20.1
Target MCU - STM32F407VGT6 (STM32F4XX_M devBoard)
- Provide library include:
#include "lcd1602_i2c.h"
- Declare the handle:
lcd1602_HandleTypeDef lcd1602_Handle;
- Put initialization function after HAL I2C init function
but before the main loop:
MX_I2C1_Init();
...
lcd1602_Init(&lcd1602_Handle, &hi2c1, PCF8574A_ADDRESS);
while (1)
{
...
}
- That's all. For application use refer to
main.c