From 1ae589596a2c767d41e05163c04864c14c99991a Mon Sep 17 00:00:00 2001 From: lovyan03 <42724151+lovyan03@users.noreply.github.com> Date: Tue, 2 Jun 2026 14:41:08 +0900 Subject: [PATCH 1/3] fix idf_component.yml --- idf_component.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/idf_component.yml b/idf_component.yml index 11defd2..40b168c 100644 --- a/idf_component.yml +++ b/idf_component.yml @@ -3,3 +3,6 @@ issues: https://github.com/m5stack/M5Unified/issues repository: https://github.com/m5stack/M5Unified.git url: https://github.com/m5stack/M5Unified.git version: 0.2.16 +dependencies: + m5stack/m5gfx: + version: ">=0.2.22" From 32a35c1d74900b7b5117572e82d1e5c6589f9652 Mon Sep 17 00:00:00 2001 From: lovyan03 <42724151+lovyan03@users.noreply.github.com> Date: Tue, 2 Jun 2026 14:56:58 +0900 Subject: [PATCH 2/3] rising version 0.2.17 --- README.md | 6 ++++++ idf_component.yml | 2 +- library.json | 2 +- library.properties | 2 +- src/gitTagVersion.h | 2 +- src/utility/IMU_Class.cpp | 2 +- 6 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fb471d5..f4c3992 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,10 @@ or have explicit support in the M5Unified library. To use these functions, simp - M5Cardputer / M5CardputerADV - M5VAMeter - M5PaperS3 + - M5PaperColor + - M5PaperMono - M5PowerHub + - M5StopWatch ## Supported devices (ESP32-C3) - M5STAMPC3 / C3U @@ -82,6 +85,9 @@ or have explicit support in the M5Unified library. To use these functions, simp - M5UnitC6L - ArduinoNessoN1 +## Supported devices (ESP32-H2) + - M5NanoH2 + ## Supported devices (ESP32-P4) - M5Tab5 diff --git a/idf_component.yml b/idf_component.yml index 40b168c..dbb454b 100644 --- a/idf_component.yml +++ b/idf_component.yml @@ -2,7 +2,7 @@ description: Unified library for M5Stack series issues: https://github.com/m5stack/M5Unified/issues repository: https://github.com/m5stack/M5Unified.git url: https://github.com/m5stack/M5Unified.git -version: 0.2.16 +version: 0.2.17 dependencies: m5stack/m5gfx: version: ">=0.2.22" diff --git a/library.json b/library.json index 0b3eece..362e9f6 100644 --- a/library.json +++ b/library.json @@ -16,7 +16,7 @@ "version": ">=0.2.22" } ], - "version": "0.2.16", + "version": "0.2.17", "frameworks": ["arduino", "espidf", "*"], "platforms": ["espressif32", "native"], "headers": "M5Unified.h" diff --git a/library.properties b/library.properties index 6bac5cb..7a8c550 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=M5Unified -version=0.2.16 +version=0.2.17 author=M5Stack maintainer=M5Stack sentence=Unified library for M5Stack series diff --git a/src/gitTagVersion.h b/src/gitTagVersion.h index 9384882..96fa479 100644 --- a/src/gitTagVersion.h +++ b/src/gitTagVersion.h @@ -1,4 +1,4 @@ #define M5UNIFIED_VERSION_MAJOR 0 #define M5UNIFIED_VERSION_MINOR 2 -#define M5UNIFIED_VERSION_PATCH 16 +#define M5UNIFIED_VERSION_PATCH 17 #define M5UNIFIED_VERSION F( M5UNIFIED_VERSION_MAJOR "." M5UNIFIED_VERSION_MINOR "." M5UNIFIED_VERSION_PATCH ) diff --git a/src/utility/IMU_Class.cpp b/src/utility/IMU_Class.cpp index f5c7d90..6999450 100644 --- a/src/utility/IMU_Class.cpp +++ b/src/utility/IMU_Class.cpp @@ -538,7 +538,7 @@ namespace m5 int32_t pv = prev_value[i]; int32_t diff = d - pv; prev_value[i] = d; - maxdiff = std::max(maxdiff, abs(diff)); + maxdiff = std::max(maxdiff, abs(diff)); int32_t av = avg_value[i]; diff = d - av; From a506775a54533f17aa9f9dadac250573db79daa8 Mon Sep 17 00:00:00 2001 From: lovyan03 <42724151+lovyan03@users.noreply.github.com> Date: Tue, 2 Jun 2026 15:03:44 +0900 Subject: [PATCH 3/3] fix compile error --- src/utility/IMU_Class.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utility/IMU_Class.cpp b/src/utility/IMU_Class.cpp index 6999450..c57d8e5 100644 --- a/src/utility/IMU_Class.cpp +++ b/src/utility/IMU_Class.cpp @@ -542,11 +542,11 @@ namespace m5 int32_t av = avg_value[i]; diff = d - av; - maxdiff = std::max(maxdiff, abs(diff)); + maxdiff = std::max(maxdiff, abs(diff)); diff = (diff + (1 << (average_shifter - 1))) >> average_shifter; avg_value[i] = av + diff; - // maxdiff = std::max(maxdiff, abs(diff) << (average_shifter)); + // maxdiff = std::max(maxdiff, abs(diff) << (average_shifter)); } int32_t rt = noise_level << 8;