This project presents a library for controlling display HD44780, which is connected to the development board NUCLEO STM32F411. Display is connected to the STM32 thought I2C 8bit IO expander PCF8574A. The main routine are placed in the file HD44780.c. In the file HD44780.h are located definitions of functions and commands. The main function (main.c) is the example of using this library for controlling HD44780. The latest files are hal.c i2c and i2c hal.h that carry out setting the I2C peripherals STM32F411.
- Basic initialization of HD44780 performs function which is called
display_HD44780_init()
. The function provides basic setup of the display. Before using this function, you must call the functioni2c_hal_intialization()
. - Another important functions is
display HD44780 cmd()
. This function writes specific command to the HD44780. List of commands is placed in the HD44780.h. - Functions called
display_HD44780_write_char()
,display_HD44780_write_string_position()
anddisplay_HD44780_write_string()
carry listing of entered characters and strings on display. - Last function writes custom character on display. The function is called
display_HD44780_write_custom_char()
.