Add draw BMP function (lcd_draw_bmp_img)

This commit is contained in:
xoreo
2023-11-13 17:17:15 +01:00
parent 60350842cf
commit e56bd84cb8
3 changed files with 17 additions and 80 deletions

View File

@@ -96,6 +96,10 @@ void lcd_draw_raw_img(const void* p_src, uint32_t x_pos, uint32_t y_pos, uint32_
HAL_DMA2D_PollForTransfer(&hDma2dHandler2, 10);
}
void lcd_draw_bmp_img(uint32_t x_pos, uint32_t y_pos, uint8_t* bmp_buff){
BSP_LCD_DrawBitmap(x_pos, y_pos, bmp_buff);
}
void lcd_clear(uint32_t color){
BSP_LCD_Clear(color);
}