Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
5 changes: 4 additions & 1 deletion idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=M5Unified
version=0.2.16
version=0.2.17
author=M5Stack
maintainer=M5Stack
sentence=Unified library for M5Stack series
Expand Down
2 changes: 1 addition & 1 deletion src/gitTagVersion.h
Original file line number Diff line number Diff line change
@@ -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 )
6 changes: 3 additions & 3 deletions src/utility/IMU_Class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int32_t>(maxdiff, abs(diff));

int32_t av = avg_value[i];
diff = d - av;
maxdiff = std::max(maxdiff, abs(diff));
maxdiff = std::max<int32_t>(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<int32_t>(maxdiff, abs(diff) << (average_shifter));
}

int32_t rt = noise_level << 8;
Expand Down
Loading