Skip to content

Add CoreS3 ILI9342E panel support#230

Merged
lovyan03 merged 1 commit into
m5stack:developfrom
Forairaaaaa:add-cores3-ili9342e-support
Jul 23, 2026
Merged

Add CoreS3 ILI9342E panel support#230
lovyan03 merged 1 commit into
m5stack:developfrom
Forairaaaaa:add-cores3-ili9342e-support

Conversation

@Forairaaaaa

@Forairaaaaa Forairaaaaa commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add automatic ILI9342C/ILI9342E panel selection for the CoreS3 display family.

Both panel variants report the same LCD ID, so the panel type is determined from the FT5x06 touch controller firmware and vendor IDs:

  • FIRMID 0x10, VENDID 0x11: ILI9342C
  • FIRMID 0x12, VENDID 0x11: ILI9342E

The change applies to CoreS3, CoreS3 SE, and StackChan, which share the same panel implementation.

Implementation

  • Read the FT5x06 CIPHER, FIRMID, and VENDID registers individually at 100 kHz for compatibility with older touch controller firmware.
  • Retry invalid reads up to five times.
  • Keep ILI9342C as the fallback for unknown versions or communication failures.
  • Apply the panel vendor's ILI9342E initialization sequence only when the ILI9342E touch firmware is detected.
  • Apply the additional sequence after the standard M5GFX initialization has completed.

Testing

Built successfully with PlatformIO using the m5stack-cores3 board.

Tested on hardware with both panel variants:

  • CoreS3 with FIRMID 0x12 / VENDID 0x11: detected as ILI9342E
  • StackChan/CoreS3-compatible hardware with FIRMID 0x10 / VENDID 0x11: detected as ILI9342C

Display output, color gradients, and touch input were verified on both variants.

@imliubo
imliubo requested a review from lovyan03 July 22, 2026 10:50
@lovyan03
lovyan03 merged commit 2846b52 into m5stack:develop Jul 23, 2026
23 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.

2 participants