Repository navigation
feat: add support for M5StickS3 and update dependencies - #17
Merged
Merged
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
The cross-device migration needs target-build and hardware validation, and battery-error handling remains unresolved.
0 open findings
What changed in this PR
Adds M5StickS3 support to the remote shutter firmware and unifies device handling through M5Unified.
Changes:
- Adds a StickS3 build target and updates dependencies.
- Migrates display, battery, button, speaker, and LED handling.
- Updates supported-device documentation and editor recommendations.
| File | Description |
|---|---|
| src/m5stick.cpp | Uses unified hardware APIs and supports StickS3. |
| src/Display.cpp | Migrates canvas rendering and battery display. |
| src/atom.cpp | Uses M5Unified and direct FastLED control. |
| README.md | Documents StickS3 and corrects device links. |
| platformio.ini | Shares dependencies and adds the StickS3 target. |
| include/Settings.hpp | Removes the battery percentage macro. |
| include/Display.hpp | Updates display types and battery interface. |
| .vscode/extensions.json | Adds an unwanted extension recommendation. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request modernizes and unifies the codebase to support additional M5Stack devices, especially the M5StickS3, and updates dependencies to use the
M5Unifiedlibrary. Key changes include refactoring display and battery handling, updating hardware initialization, and improving device compatibility.Device and Library Support Updates:
M5StickCPlus.h,M5Atom.h) toM5Unified.hfor unified device support, and updated PlatformIO configuration to useM5Unifiedand support M5StickS3 (platformio.ini,include/Display.hpp,src/atom.cpp,src/m5stick.cpp). [1] [2] [3] [4]Display and Battery Handling:
Displayclass to useM5GFXandM5Canvasinstead of device-specific types; updated the battery display method to show voltage, current, and percentage, and to use unified power APIs (include/Display.hpp,src/Display.cpp,src/m5stick.cpp). [1] [2] [3] [4] [5]Hardware Initialization and Event Handling:
src/atom.cpp,src/m5stick.cpp). [1] [2] [3]Documentation and Recommendations:
README.md,.vscode/extensions.json). [1] [2]Cleanup and Deprecation:
include/Settings.hpp).