Add LILYGO T-Display-C5 board definition - #2736
Open
omegaconjecture wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Adds a board definition for the LILYGO T-Display-C5 — an ESP32-C5 board with a 1.9" ST7789 170x320 SPI display and an AXP2602 battery management unit. This lets Bruce build and run on the T-Display-C5 out of the box (
pio run -e lilygo-t-display-c5). Includespins_arduino.h,interface.cpp(custom two-button input handler + backlight/GPIO setup), and the PlatformIO env.Types of Changes
New Feature (new board support). No changes to shared/core code, so no impact on existing boards.
Verification
Build:
pio run -e lilygo-t-display-c5compiles cleanly.Flash: uploads over USB-Serial/JTAG; boots to the main menu.
Confirmed on hardware: display, backlight, two-button navigation, and theme colors all render correctly.
Testing
Manually tested on physical hardware (ESP32-C5 rev v1.2):
Linked Issues
None.
User-Facing Change
Further Comments
A few board-specific notes and known limitations for reviewers:
TFT_MISOmust be assigned a real GPIO (not-1), or the ESP32-C5 SPI bus fails to initialize and the panel stays blank even though the backlight is on.digitalWrite).analogWrite/LEDC auto-attach on the C5 left the BL pin undriven, so PWM dimming is disabled for now.