alignment of mintemp, maxtemp at bottom line

This commit is contained in:
Yunhorn 2023-08-09 20:44:35 +08:00
parent 1f7061a7b3
commit 2852c8e0ee
3 changed files with 6 additions and 8 deletions

View File

@ -145,16 +145,16 @@ 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 0
#if 1
BSP_LCD_SetFont(&Font16);
DrawProp.BackColor = LCD_COLOR_BLACK;
memset(tempBuffer,0,sizeof(tempBuffer));
sprintf(tempBuffer,(char *)"%2.1f",minTemp);
BSP_LCD_DisplayStringAt(8,260,(uint8_t *)tempBuffer,LEFT_MODE,LCD_COLOR_BLUE);
BSP_LCD_DisplayStringAt(8,ST7789V_LCD_PIXEL_HEIGHT-16,(uint8_t *)tempBuffer,LEFT_MODE,LCD_COLOR_BLUE);
memset(tempBuffer,0,sizeof(tempBuffer));
sprintf(tempBuffer,(char *)"%2.1f",maxTemp);
BSP_LCD_DisplayStringAt(190,260,(uint8_t *)tempBuffer,LEFT_MODE,LCD_COLOR_RED);
BSP_LCD_DisplayStringAt(190,ST7789V_LCD_PIXEL_HEIGHT-16,(uint8_t *)tempBuffer,LEFT_MODE,LCD_COLOR_RED);
#endif
}

View File

@ -1,10 +1,8 @@
//
// Created by 21312 on 2021/12/12.
//
#include "mlx90640_user.h"
#include "sys_app.h"
uint16_t frame[834];
float emissivity=0.95f;
float emissivity=0.15f; //0.95f
uint8_t mlx90640_init(uint8_t refresh_rate,paramsMLX90640 *mlx90640)
{
int status;

View File

@ -13,7 +13,7 @@
#define FPS32HZ 0x06
#define MLX90640_ADDR 0x33
#define RefreshRate FPS4HZ
#define RefreshRate FPS8HZ
#define TA_SHIFT 8 //Default shift for MLX90640 in open air
static uint16_t eeMLX90640[832];