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 11defd2..dbb454b 100644 --- a/idf_component.yml +++ b/idf_component.yml @@ -2,4 +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..c57d8e5 100644 --- a/src/utility/IMU_Class.cpp +++ b/src/utility/IMU_Class.cpp @@ -538,15 +538,15 @@ 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; - 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;