From 51ee7156122f14446313460964da76dab07c4cb5 Mon Sep 17 00:00:00 2001 From: sean <1026025056@qq.com> Date: Thu, 27 Jul 2023 18:49:27 +0800 Subject: [PATCH] fix MLX90640,QMP6988,PIR compile --- examples/Basics/Micophone/Micophone.ino | 2 +- examples/Hat/MLX90640/MLX90640_API.h | 2 ++ examples/Unit/BPS_QMP6988/BPS_QMP6988.ino | 2 +- examples/Unit/MLX90640/MLX90640_API.h | 2 ++ examples/Unit/PIR/{pir.ino => PIR.ino} | 0 examples/Unit/THERMAL_MLX90640/MLX90640_API.h | 2 ++ 6 files changed, 8 insertions(+), 2 deletions(-) rename examples/Unit/PIR/{pir.ino => PIR.ino} (100%) diff --git a/examples/Basics/Micophone/Micophone.ino b/examples/Basics/Micophone/Micophone.ino index 499ff28..72c1795 100644 --- a/examples/Basics/Micophone/Micophone.ino +++ b/examples/Basics/Micophone/Micophone.ino @@ -10,7 +10,7 @@ * Date: 2022/2/22 ******************************************************************************* */ -#include +#include #include #define PIN_CLK 0 diff --git a/examples/Hat/MLX90640/MLX90640_API.h b/examples/Hat/MLX90640/MLX90640_API.h index 3fada4c..bf37b1a 100755 --- a/examples/Hat/MLX90640/MLX90640_API.h +++ b/examples/Hat/MLX90640/MLX90640_API.h @@ -17,6 +17,8 @@ #ifndef _MLX640_API_H_ #define _MLX640_API_H_ +#include + #define SCALEALPHA 0.000001 typedef struct { diff --git a/examples/Unit/BPS_QMP6988/BPS_QMP6988.ino b/examples/Unit/BPS_QMP6988/BPS_QMP6988.ino index 2beda69..fe7618b 100644 --- a/examples/Unit/BPS_QMP6988/BPS_QMP6988.ino +++ b/examples/Unit/BPS_QMP6988/BPS_QMP6988.ino @@ -14,7 +14,7 @@ the display screen 请连接端口A(33、32),读取大气压强并在显示屏 */ #include -#include "UNIT_ENV.h" +#include "M5_ENV.h" #include "Wire.h" //The BPS uses I2C comunication. QMP6988 qmp6988; diff --git a/examples/Unit/MLX90640/MLX90640_API.h b/examples/Unit/MLX90640/MLX90640_API.h index b3b8513..51da08c 100644 --- a/examples/Unit/MLX90640/MLX90640_API.h +++ b/examples/Unit/MLX90640/MLX90640_API.h @@ -17,6 +17,8 @@ #ifndef _MLX640_API_H_ #define _MLX640_API_H_ +#include + typedef struct { int16_t kVdd; int16_t vdd25; diff --git a/examples/Unit/PIR/pir.ino b/examples/Unit/PIR/PIR.ino similarity index 100% rename from examples/Unit/PIR/pir.ino rename to examples/Unit/PIR/PIR.ino diff --git a/examples/Unit/THERMAL_MLX90640/MLX90640_API.h b/examples/Unit/THERMAL_MLX90640/MLX90640_API.h index 3fada4c..bf37b1a 100755 --- a/examples/Unit/THERMAL_MLX90640/MLX90640_API.h +++ b/examples/Unit/THERMAL_MLX90640/MLX90640_API.h @@ -17,6 +17,8 @@ #ifndef _MLX640_API_H_ #define _MLX640_API_H_ +#include + #define SCALEALPHA 0.000001 typedef struct {