|
|
|
@ -45,10 +45,10 @@ void MY_LCD_Init() {
|
|
|
|
|
HAL_LTDC_ProgramLineEvent(&hltdc_eval, 0); |
|
|
|
|
|
|
|
|
|
/* Display example brief */ |
|
|
|
|
LCD_BriefDisplay(); |
|
|
|
|
//LCD_BriefDisplay();
|
|
|
|
|
|
|
|
|
|
/* Copy Buffer 0 into buffer 1, so only image area to be redrawn later */ |
|
|
|
|
CopyBuffer((uint32_t *)Buffers[0], (uint32_t *)Buffers[1], 0, 0, 800, 480); |
|
|
|
|
CopyBuffer((uint32_t *)Buffers[0], (uint32_t *)Buffers[1], 0, 0, 480, 272); |
|
|
|
|
} |
|
|
|
|
/*
|
|
|
|
|
void MY_LCD_Tick() { |
|
|
|
@ -115,6 +115,7 @@ static void LCD_BriefDisplay(void)
|
|
|
|
|
BSP_LCD_SetTextColor(LCD_COLOR_WHITE); |
|
|
|
|
BSP_LCD_SetFont(&Font16); |
|
|
|
|
BSP_LCD_DisplayStringAtLine(1, (uint8_t *)" LCD_VideoMode_DoubleBuffering"); |
|
|
|
|
/*
|
|
|
|
|
BSP_LCD_FillRect(0, 0, 480, 272); |
|
|
|
|
BSP_LCD_SetBackColor(LCD_COLOR_BLUE); |
|
|
|
|
BSP_LCD_SetTextColor(LCD_COLOR_BLUE); |
|
|
|
@ -134,7 +135,7 @@ static void LCD_BriefDisplay(void)
|
|
|
|
|
BSP_LCD_SetFont(&Font16); |
|
|
|
|
//BSP_LCD_DisplayStringAtLine(4, (uint8_t *)"This example shows how to display images on LCD DSI using two buffers");
|
|
|
|
|
//BSP_LCD_DisplayStringAtLine(5, (uint8_t *)"one for display and the other for draw ");
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|