Added WDA_LCD_DrawBmp to the LCD_API branch/feature

This commit is contained in:
xoreo
2023-11-09 12:41:20 +01:00
parent 7373f05a6f
commit 4bc55f19be
10 changed files with 1522 additions and 24 deletions

View File

@@ -23,6 +23,10 @@
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "log.h"
//#include "test_img.h"
#include "stlogo.h"
#include "lcd_api.h"
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
@@ -108,11 +112,13 @@ int main(void)
MX_LWIP_Init();
MX_QUADSPI_Init();
/* USER CODE BEGIN 2 */
//BSP_LCD_Init();
HAL_GPIO_WritePin(LCD_BL_CTRL_GPIO_Port,LCD_BL_CTRL_Pin,GPIO_PIN_SET);
/* Assert display enable LCD_DISP pin */
HAL_GPIO_WritePin(LCD_DISP_GPIO_Port, LCD_DISP_Pin, GPIO_PIN_SET);
/* USER CODE END 2 */
init_lcd();
//display_bmp_array(stlogo, 20, 20, 0);
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
@@ -120,6 +126,9 @@ int main(void)
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
WDA_LCD_DrawBmp(TEST_DATA, 30, 30, 50, 50, 0x00000002U);
}
/* USER CODE END 3 */
}