Skip to content

[SYS] Migrate M5 boards to M5Unified + M5GFX (modern platform) - #2355

Merged
1technophile merged 1 commit into
developmentfrom
feature/m5unified-migration
Aug 15, 2026
Merged

[SYS] Migrate M5 boards to M5Unified + M5GFX (modern platform)#2355
1technophile merged 1 commit into
developmentfrom
feature/m5unified-migration

Conversation

@1technophile

Copy link
Copy Markdown
Owner

Description:

The per-board libs (M5Stack/M5StickC/M5StickC-Plus/M5Tough) don't build on Arduino core 3.x, which kept the five M5 BLE envs pinned to espressif32@6.1.0. Port board support to M5Unified + M5GFX so they run ${com.esp32_platform} like the rest of the tree.

  • environments.ini: 5 M5 envs -> modern platform + m5unified. m5stick-c uses the pico32 variant (m5stick_c variant absent upstream) and no_coredump partitions (M5Unified overflows min_spiffs).
  • boardM5.cpp / config_M5.h: single <M5Unified.h>; M5.Lcd aliases M5.Display; unified brightness/sleep/wake.
  • main.cpp / mqttDiscovery.cpp: battery telemetry via M5.Power; AXP192-only Vin/VBus/temp fields dropped (no portable equivalent).

All five M5 envs build; M5Stack Core hardware-verified.

Checklist:

  • The pull request is done against the latest development branch
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • I accept the DCO.

The per-board libs (M5Stack/M5StickC/M5StickC-Plus/M5Tough) don't build on
Arduino core 3.x, which kept the five M5 BLE envs pinned to espressif32@6.1.0.
Port board support to M5Unified + M5GFX so they run ${com.esp32_platform} like
the rest of the tree.

- environments.ini: 5 M5 envs -> modern platform + m5unified. m5stick-c uses the
  pico32 variant (m5stick_c variant absent upstream) and no_coredump partitions
  (M5Unified overflows min_spiffs).
- boardM5.cpp / config_M5.h: single <M5Unified.h>; M5.Lcd aliases M5.Display;
  unified brightness/sleep/wake.
- main.cpp / mqttDiscovery.cpp: battery telemetry via M5.Power; AXP192-only
  Vin/VBus/temp fields dropped (no portable equivalent).

All five M5 envs build; M5Stack Core hardware-verified.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@1technophile
1technophile merged commit d8ffa3f into development Aug 15, 2026
109 checks passed
@1technophile
1technophile deleted the feature/m5unified-migration branch August 15, 2026 21:45
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