ImpulseAdventure / GUIslice

GUIslice drag & drop embedded GUI in C for touchscreen TFT on Arduino, Raspberry Pi, ARM, ESP8266 / ESP32 / M5stack using Adafruit-GFX / TFT_eSPI / UTFT / SDL
https://www.impulseadventure.com/elec/guislice-gui.html
MIT License
1.12k stars 204 forks source link

Add driver for CTS820 Touch Panel find on Lilygo T Display S3 #521

Closed florinbaciuu closed 3 months ago

florinbaciuu commented 7 months ago

I saw on this post: [}(https://www.reddit.com/r/esp32/comments/11s7os7/i_wonder_if_i_can_use_guislice_or_similar_to) that someone search info about this board. I remembered that I have this board and I decided to create a driver for this library. On this occasion I will be able to use the board myself for educational purposes. Board is: Lilygo T Display S3 with touch, 16MB Flash, 8Mb PSRAM. Touch panel is CST820, works on i2c, SCL=17, SDA=18, INT=16, RES=21 on i2c_adress (0X15). INT is interrupt pin but in this driver i not created the option to chose interrupt. In future i will try. For that driver to work its need TouchLib library found on mmMicky github page mmMicky or library found on lilygo github liligo . Calibration is not expected to this display.

ImpulseAdventure commented 4 months ago

Hi @florinbaciuu -- Thank you very much for submitting this PR. I had a quick look through the code but noted that the diff was showing >2000 lines due to the reformatting.

If you had an opportunity to resubmit the PR without the code reformat, it would be much easier to see the changes.

Many thanks!