clear background with black color

This commit is contained in:
Yunhorn 2023-08-09 18:33:17 +08:00
parent ea0ced30b8
commit 1f7061a7b3
2 changed files with 5 additions and 4 deletions

View File

@ -148,8 +148,8 @@ extern I2C_HandleTypeDef hi2c2;
#define MEMS_SENSOR_INTERRUPT_Pin GPIO_PIN_8
#define MEMS_SENSOR_INTERRUPT_GPIO_Port GPIOA
#define MEMS_SENSOR_INTERRUPT_EXTI_IRQn EXTI9_5_IRQn
#define MEMS_ENABLE_Pin GPIO_PIN_5
#define MEMS_ENABLE_GPIO_Port GPIOB
//#define MEMS_ENABLE_Pin GPIO_PIN_5
//#define MEMS_ENABLE_GPIO_Port GPIOB
#endif
/* USER CODE END Private defines */

View File

@ -128,7 +128,8 @@ static void drawLegend(void)
BSP_LCD_DrawVLine(8+ + j++, 260, 20, TempToColor(ii));
}
#endif
BSP_LCD_FillRect(0,240,240, 300, LCD_COLOR_BLACK);
//BSP_LCD_FillRect(0,240,240, 320, LCD_COLOR_BLACK);
BSP_LCD_Clear(LCD_COLOR_BLACK);
draw_legend_once =1;
BSP_LCD_DrawHLine(0,246,ST7789V_LCD_PIXEL_WIDTH, LCD_COLOR_LIGHTBLUE);
@ -144,7 +145,7 @@ static void drawLegend(void)
sprintf(tempBuffer,(char *)"F10.Male#1.WashBasin",centerTemp);
BSP_LCD_DisplayStringAt(8, ST7789V_LCD_PIXEL_HEIGHT-16,(uint8_t *)tempBuffer,LEFT_MODE,LCD_COLOR_WHITE);
}
#if 1
#if 0
BSP_LCD_SetFont(&Font16);
DrawProp.BackColor = LCD_COLOR_BLACK;
memset(tempBuffer,0,sizeof(tempBuffer));