esp32s3/lcd: Add support to 7" LCD on Waveshare ESP32S3-Touch-LCD-7 - #19937
Merged
Conversation
cederom
reviewed
Aug 23, 2026
cederom
reviewed
Aug 23, 2026
cederom
reviewed
Aug 23, 2026
Contributor
|
The second commit states "esp32s3: Add support to LCD" while this one is about adding support to "esp32-touch-lcd7" board.. there are other esp32s3 boards with lcd support already here. I would rename commit subject to "add lcd support to esp32s3-touch-lcd7" or something like that :-) Thank you @acassis for this great new feature :-) |
Contributor
Author
True, good idea! |
acassis
force-pushed
the
esp32s3-touch-lcd7
branch
from
August 23, 2026 15:33
c766a2c to
56d0f6c
Compare
acassis
force-pushed
the
esp32s3-touch-lcd7
branch
from
August 23, 2026 16:35
56d0f6c to
e3d2a0c
Compare
The CH422G offers eight bi-directional pins, IO0-IO7, and four open-drain
outputs, OC0-OC3. It appears on boards that have run out of usable GPIOs
once a parallel RGB panel has taken its share, the Waveshare
ESP32-S3-Touch-LCD-7 among them, where it holds the panel and touch
controller in and out of reset and switches the backlight.
Two things about the device do not fit the shape a register-per-address
I2C driver usually takes, and both are handled here rather than pushed on
to board logic:
- A register is selected by the I2C address the transfer is addressed
to, not by a register address written ahead of the data. Each access
carries a single byte to one of four addresses.
- None of the write-only registers can be read back, so the driver
keeps a shadow copy of each and updates it in step with the device.
IO0-IO7 have no individual direction control; one bit of the system
parameter register drives the whole group. The driver records the
direction asked of each pin and puts the group in output mode once at
least one of them is an output, which is what a board that drives some of
the pins would expect. Reading a pin of a group held in output mode
reports the value last written, because the hardware cannot report the
level, and that is documented rather than hidden.
The four open-drain outputs are presented as pins 8-11 of the same
ioexpander_dev_s so that one instance covers the chip, which means
CONFIG_IOEXPANDER_NPINS must be at least 12.
Builds clean with no new warnings on esp32s3-touch-lcd7:usbnsh and passes
nxstyle.
Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com>
Assisted-by: Claude Code
This patch get some fixes from ESP-IDF to fix a rolling issue that happens on big resolution LCDs such as 800x480 LCDs. Signed-off-by: Alan C. Assis <acassis@gmail.com> Assisted-by: Claude Code
This patch adds support to 7" 800x480 LCD on esp32s3-touch-lcd7 board. Signed-off-by: Alan C. Assis <acassis@gmail.com> Assisted-by: Claude Code
This commit updates the board documentation. Signed-off-by: Alan C. Assis <acassis@gmail.com> Assisted-by: Claude Code
acassis
force-pushed
the
esp32s3-touch-lcd7
branch
from
August 23, 2026 16:41
e3d2a0c to
dcd6abc
Compare
eren-terzioglu
approved these changes
Aug 24, 2026
jerpelea
approved these changes
Aug 24, 2026
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.
Summary
These patches add an I/O expander used on this board to control the LCD, USB, CAN, etc and the support to LCD itself.
Including a fix to LCD rolling from ESP-IDF.
Impact
Users will be able to use this board with LCD
Testing
nsh> fb