Skip to content

Add support and firmware updates for M5StickC Plus 2 - #55

Open
bdlglua wants to merge 14 commits into
SneezeGUI:mainfrom
bdlglua:main
Open

bdlglua wants to merge 14 commits into
SneezeGUI:mainfrom
bdlglua:main

Conversation

@bdlglua

@bdlglua bdlglua commented Oct 19, 2026 •

Copy link
Copy Markdown

Add support and firmware updates for M5StickC Plus 2

Summary

Adds M5StickC Plus 2 as a supported board. The README currently lists M5Stack boards as "Not configured".

The M5StickC Plus 2 uses an ESP32-PICO-V3-02 (dual-core, hardware SHA-256), so it should get the pipelined assembly mining path used on the CYD boards. It has a 1.14" ST7789V2 display (135x240), 3 buttons, a 200 mAh battery and 8 MB flash.

Changes

  • platformio.ini: new m5stickc-plus2 environment (ESP32, dual-core, huge_app.csv partition table [adjust if different]).
  • include/board_config.h: M5StickC Plus 2 pin and display definitions (ST7789 135x240, backlight, buttons).
  • Power hold: the board powers itself via a hold pin (GPIO4), which is set HIGH at boot so the device stays on when running from battery.
  • Buttons: M5StickC Plus 2 has no BOOT button, so the existing button actions are mapped to its buttons (BtnA / BtnB / Power). Screen cycling, rotation, color inversion and factory reset still work [confirm mapping].
  • Display: layout adjusted for the 135x240 resolution, in landscape and portrait [confirm].
  • devtool.toml / devtool.py: board added so python devtool.py build -b m5stickc-plus2 works, including release builds.
  • CI: m5stickc-plus2_firmware.bin and m5stickc-plus2_factory.bin are now produced by the release workflow [if applicable].
  • README / CHANGELOG: board added to "Which Firmware Do I Download?", the compatibility table (M5Stack: ❌ → ✅ for this model) and the expected hashrate table; CHANGELOG entry added.

Testing

  • pio run -e m5stickc-plus2 builds with no warnings
  • Flashed *_factory.bin over USB on real hardware
  • WiFi AP portal and config.json configuration work
  • Mining starts, shares are accepted by the pool
  • All 3 screens render correctly (Mining / Network Stats / Clock)
  • Button actions and rotation work and persist in NVS
  • Runs on battery without shutting down at boot
  • Other environments still build (CYD, Freenove S3, C3 and Lolin32 OLED)

Notes

  • Backlight, buzzer and battery voltage are [not used / handled in this PR]. Screen auto-off still works via screen_timeout.
  • The mining workload and the 200 mAh battery limit run time on battery, so USB power is recommended for long sessions.

Screenshot

unnamed

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.

1 participant