this is Interfacing 16×2 LCD with bluePill board but you can use in all stm32 microcontroller. just add lcd.h and lcd.c to your project.