clear background with black color
This commit is contained in:
parent
ea0ced30b8
commit
1f7061a7b3
|
@ -148,8 +148,8 @@ extern I2C_HandleTypeDef hi2c2;
|
||||||
#define MEMS_SENSOR_INTERRUPT_Pin GPIO_PIN_8
|
#define MEMS_SENSOR_INTERRUPT_Pin GPIO_PIN_8
|
||||||
#define MEMS_SENSOR_INTERRUPT_GPIO_Port GPIOA
|
#define MEMS_SENSOR_INTERRUPT_GPIO_Port GPIOA
|
||||||
#define MEMS_SENSOR_INTERRUPT_EXTI_IRQn EXTI9_5_IRQn
|
#define MEMS_SENSOR_INTERRUPT_EXTI_IRQn EXTI9_5_IRQn
|
||||||
#define MEMS_ENABLE_Pin GPIO_PIN_5
|
//#define MEMS_ENABLE_Pin GPIO_PIN_5
|
||||||
#define MEMS_ENABLE_GPIO_Port GPIOB
|
//#define MEMS_ENABLE_GPIO_Port GPIOB
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* USER CODE END Private defines */
|
/* USER CODE END Private defines */
|
||||||
|
|
|
@ -128,7 +128,8 @@ static void drawLegend(void)
|
||||||
BSP_LCD_DrawVLine(8+ + j++, 260, 20, TempToColor(ii));
|
BSP_LCD_DrawVLine(8+ + j++, 260, 20, TempToColor(ii));
|
||||||
}
|
}
|
||||||
#endif
|
#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;
|
draw_legend_once =1;
|
||||||
|
|
||||||
BSP_LCD_DrawHLine(0,246,ST7789V_LCD_PIXEL_WIDTH, LCD_COLOR_LIGHTBLUE);
|
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);
|
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);
|
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);
|
BSP_LCD_SetFont(&Font16);
|
||||||
DrawProp.BackColor = LCD_COLOR_BLACK;
|
DrawProp.BackColor = LCD_COLOR_BLACK;
|
||||||
memset(tempBuffer,0,sizeof(tempBuffer));
|
memset(tempBuffer,0,sizeof(tempBuffer));
|
||||||
|
|
Loading…
Reference in New Issue