alignment of screen top/bottom line

This commit is contained in:
Yunhorn 2023-08-11 14:04:00 +08:00
parent a419e5f37a
commit 84f896c556
1 changed files with 4 additions and 3 deletions

View File

@ -139,8 +139,9 @@ static void drawLegend(void)
draw_legend_once =1;
//BSP_LCD_DrawHLine(0,ST7789V_LCD_PIXEL_HEIGHT-16-1,ST7789V_LCD_PIXEL_WIDTH, LCD_COLOR_LIGHTBLUE);
BSP_LCD_DrawHLine(0,15,ST7789V_LCD_PIXEL_WIDTH, LCD_COLOR_BRRED);
BSP_LCD_DrawHLine(0,ST7789V_LCD_PIXEL_HEIGHT-16-1,ST7789V_LCD_PIXEL_WIDTH, LCD_COLOR_BRRED);
BSP_LCD_DrawHLine(0,16,ST7789V_LCD_PIXEL_WIDTH, LCD_COLOR_BRRED);
BSP_LCD_SetFont(&Font16);
memset(tempBuffer,0,sizeof(tempBuffer));
@ -212,7 +213,7 @@ averageTemp = 0.0;
averageTemp /= 768;
#endif
BSP_LCD_FillRect(0,40, ST7789V_LCD_PIXEL_WIDTH, ST7789V_LCD_PIXEL_HEIGHT, LCD_COLOR_BLACK);
BSP_LCD_FillRect(0,2*16+6, ST7789V_LCD_PIXEL_WIDTH, ST7789V_LCD_PIXEL_HEIGHT-32, LCD_COLOR_BLACK);
// ignore edge of FOV
for (y=2; y<22; y++)
{
@ -221,7 +222,7 @@ averageTemp = 0.0;
if (zoneMask[y*32+x] > 3) {
//APP_LOG(TS_OFF,VLEVEL_L,"\r\n X=%d Y=%d Count=%d\r\n",x,y,zoneMask[y*32+x]);
BSP_LCD_FillRect(x*8, y*11 + 32, 4, 4, LCD_COLOR_GREEN);
BSP_LCD_FillRect(x*8, y*11+16, 4, 4, LCD_COLOR_GREEN);
}
}
}