Skip to content

feat: add max2 hardware support with improvements#8

Merged
L-jasmine merged 16 commits into
mainfrom
feat/new_screen
May 18, 2026
Merged

feat: add max2 hardware support with improvements#8
L-jasmine merged 16 commits into
mainfrom
feat/new_screen

Conversation

@L-jasmine
Copy link
Copy Markdown
Collaborator

Summary

  • Add max2 feature flag for larger display (320x170) hardware support
  • Rename new-screen feature to max2 across all files
  • Add max2 build targets to CI/CD and build scripts
  • Fix random runtime crash by locking Tokio to 1.48.0
  • Replace esp_restart() with hal::reset::restart()
  • Add runtime error handling and debug logging
  • Adjust LCD panel gap configuration for max2

CI/CD

  • Added max2 build variants to release workflow
  • Added max2 feature build check to CI

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

L-jasmine and others added 16 commits April 26, 2026 14:45
Add a `new-screen` feature flag to support a 320x170 display (vs original 284x78). This includes:
- Display dimensions: 320x170 (new) vs 284x78 (old)
- LCD gap adjustments: 0,36 (new) vs 18,82 (old)
- Color inversion enabled for new screen
- JPEG decoder dimensions updated
- Backlight logic inverted (high vs low)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tokio 1.50.0+ had compatibility issues with ESP-IDF environment,
causing intermittent LoadProhibited panics in CurrentThread::new.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add proper error handling for Tokio runtime creation
- Add heap logging at key points for debugging
- Comment out BT_NIMBLE_HOST_TASK_STACK_SIZE config

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add max2, max2_bin, max2_ota_bin build targets in build.sh
- Update release workflow to build and upload max2 artifacts
- Add max2 feature build check to CI

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@L-jasmine L-jasmine merged commit 94d3550 into main May 18, 2026
3 checks passed
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