Skip to content

New touch driver: CST820 #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

gitcnd
Copy link

@gitcnd gitcnd commented Feb 3, 2025

This is essentially the same as the CST816S driver, but with the Chip_ID being 0xB7 instead of 0xB5.

It is tested and working (code and screenshots here: #278 )

@gitcnd
Copy link
Author

gitcnd commented Feb 3, 2025

Pardon the additional commit... I was unable to get the popular esp32_243sS028r, aka "cheap yellow board" or CYB touch working without resorting to adding the swapxy option that many other drivers seem to have. With this here, it now works nicely.
Code and screenshots here: #281

@yusuhua
Copy link

yusuhua commented Feb 20, 2025

The driver code for the CST816 class is basically the same and can actually be extracted. The _ChipIDValue can be set as a parameter. For example, my T-CameraPlus-S3 uses the CST816D, so changing the _ChipIDValue to 0xB6 works.
https://github.com/esphome/esphome/blob/dev/esphome/components/cst816/touchscreen/cst816_touchscreen.h

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