Skip to content

feat: add support for M5StickS3 and update dependencies - #17

Merged
ww24 merged 1 commit into
masterfrom
feat/m5stick-s3
Oct 15, 2026
Merged

ww24 merged 1 commit into
masterfrom
feat/m5stick-s3

Conversation

@ww24

@ww24 ww24 commented Oct 15, 2026

Copy link
Copy Markdown
Owner

This pull request modernizes and unifies the codebase to support additional M5Stack devices, especially the M5StickS3, and updates dependencies to use the M5Unified library. Key changes include refactoring display and battery handling, updating hardware initialization, and improving device compatibility.

Device and Library Support Updates:

  • Migrated from device-specific libraries (e.g., M5StickCPlus.h, M5Atom.h) to M5Unified.h for unified device support, and updated PlatformIO configuration to use M5Unified and support M5StickS3 (platformio.ini, include/Display.hpp, src/atom.cpp, src/m5stick.cpp). [1] [2] [3] [4]

Display and Battery Handling:

  • Refactored the Display class to use M5GFX and M5Canvas instead 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:

  • Updated hardware initialization and event handling to use the new unified APIs for buttons, speaker, and power management, and improved LED handling for device connection status (src/atom.cpp, src/m5stick.cpp). [1] [2] [3]

Documentation and Recommendations:

  • Updated the README to clarify supported devices and fixed documentation links; added unwanted VS Code extension recommendations (README.md, .vscode/extensions.json). [1] [2]

Cleanup and Deprecation:

  • Removed the custom battery percentage macro, as battery handling is now managed by the unified API (include/Settings.hpp).

@ww24 ww24 self-assigned this Oct 15, 2026
@ww24
ww24 requested a balanced review from Copilot October 15, 2026 14:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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.

@ww24
ww24 merged commit 2e14e58 into master Oct 15, 2026
2 checks passed
@ww24
ww24 deleted the feat/m5stick-s3 branch October 15, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants