From 2852c8e0eed59bf07130dc66f7435e0747fb4276 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Wed, 9 Aug 2023 20:44:35 +0800 Subject: [PATCH] alignment of mintemp, maxtemp at bottom line --- mlx90640/mlx90640_lcd_display.c | 6 +++--- mlx90640/mlx90640_user.c | 6 ++---- mlx90640/mlx90640_user.h | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/mlx90640/mlx90640_lcd_display.c b/mlx90640/mlx90640_lcd_display.c index e3e99d4..b42ad07 100644 --- a/mlx90640/mlx90640_lcd_display.c +++ b/mlx90640/mlx90640_lcd_display.c @@ -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 } diff --git a/mlx90640/mlx90640_user.c b/mlx90640/mlx90640_user.c index 6b9e124..29b82bb 100644 --- a/mlx90640/mlx90640_user.c +++ b/mlx90640/mlx90640_user.c @@ -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; diff --git a/mlx90640/mlx90640_user.h b/mlx90640/mlx90640_user.h index f78a871..1c85324 100644 --- a/mlx90640/mlx90640_user.h +++ b/mlx90640/mlx90640_user.h @@ -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];