Xinyuan-LilyGO / T-Display-S3

MIT License
733 stars 174 forks source link

no Touch IC found #125

Closed 369Martin369 closed 1 year ago

369Martin369 commented 1 year ago

1) I copied all libs to my lib folder 2) Then I compile "....T-Display-S3-main\example\touch_test\touch_test.ino" 3) Logo is flashing and I see 100ms a green text but then display turns black Serial and serial print says:

Hello T-Display-S3 226): GPIO output gpio_num error E (514) gpio: gpio_set_level(226): GPIO output gpio_num error Touch IC not found

4) when I press BOT button, system goes to sleep! good! 5) when I touch display, system wakes up!!!! yeah, so touch function works in principally...but why GPIO error???

What is wrong???

369Martin369 commented 1 year ago

Is my unit broken? I checked SCL=18 and SDA=17, so compiling should be fine.

AlexanderDragosch commented 1 year ago

same error here. any new insigthts ?

AlexanderDragosch commented 1 year ago

worked after i changed to "SELF"

//#define TOUCH_MODULES_CST_MUTUAL
#define TOUCH_MODULES_CST_SELF
369Martin369 commented 1 year ago

thank you Alex. can confirm function now. PS. P value is always 0000...so pressure does not work. However, axes are okay.

369Martin369 commented 1 year ago

Lilygo, please patch file "touch_test.ino" with //#define TOUCH_MODULES_CST_MUTUAL

define TOUCH_MODULES_CST_SELF

Thanks

lewisxhe commented 1 year ago

The t-display s3 has two types of touch screens, with a small hint at the top of the sketch that may not be obvious enough

lewisxhe commented 1 year ago

I have already marked a clear hint above the sketch

369Martin369 commented 1 year ago

can you explain about P value is always 0000... and why multiple fingers are not detected? It this because of new chip?

lewisxhe commented 1 year ago

Most TFT touch screens do not support multi touch

369Martin369 commented 1 year ago

Please a bit more specific....so you ship a mix ...some work,.some not, depending on chips used, or what???thanks

369Martin369 commented 1 year ago

20230323_131914.jpg

2nd. You ship box with picture of a keyboard. It would be nice if you can share the code of the keyboard with us, so that we can speed up our developments. Thanks a lot!

lewisxhe commented 1 year ago

Keyboard, please look here https://github.com/Xinyuan-LilyGO/T-Embed/tree/main/example/factory

lewisxhe commented 1 year ago

CST816 does not support multi touch

369Martin369 commented 1 year ago

Keyboard, please look here https://github.com/Xinyuan-LilyGO/T-Embed/tree/main/example/factory

I have no idea which code lines you refer to...

Ton-O commented 7 months ago

Hi, I have a LilyGo T-display S3 and want touch to work. according to the seller, the touch chip has been changed from CST328 to CST816... What settings should I use for touch in that case?