Skip to content
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

TOUCH_CS undefined warning in hello world example #213

Open
mcl-uk opened this issue Jun 18, 2024 · 7 comments
Open

TOUCH_CS undefined warning in hello world example #213

mcl-uk opened this issue Jun 18, 2024 · 7 comments

Comments

@mcl-uk
Copy link

mcl-uk commented Jun 18, 2024

I'm a complete newbee to CYD - thanks so much for your brilliant intro into using this kit.
Trying the Hello World example I was getting TOUCH_CS undefined warnings, and a blank LCD screen.
Uncommenting one of the TOUCH_CS lines in User_Setup.h got it working.
But I'm unsure what the correct setting for TOUCH_CS should be, your Pin Descriptions page indicates it might be 33, is this right?
If so it might be worth updating the User_Setup.h file to include this and avoid confusion for other newbees like me.
Thanks again.
Steve.

@TheNitek
Copy link
Collaborator

The touch screen is not sharing a bus with the display (see https://github.com/witnessmenow/ESP32-Cheap-Yellow-Display/blob/main/PINS.md#touch-screen ), which is not supported by the TFT_eSPI library. The warning is nothing to worry about. For details on how to setup the thouch screen you can have a look at the other examples.

@mcl-uk
Copy link
Author

mcl-uk commented Jun 18, 2024

My point was that (somehow) the display would not work until TOUCH_CS was defined.

@TheNitek TheNitek reopened this Jun 18, 2024
@TheNitek
Copy link
Collaborator

There should be no correlation between that warning an the screen working (/not working)

@mcl-uk
Copy link
Author

mcl-uk commented Jun 18, 2024

Quite! But that was what happened.

@Zynth9999
Copy link

Hey! I had a similar problem, are you using PIO or Arduino IDE?

@mcl-uk
Copy link
Author

mcl-uk commented Jun 18, 2024

I'm using arduino IDE.

@Zynth9999
Copy link

Ah then start using PIO, it worked for me and it's overall better.

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

No branches or pull requests

3 participants