Support display on Lilygo T-QT (ESP32S3) - GC9107 #2175
Replies: 7 comments 2 replies
-
The module seems to have a new display controller type GC9107. This appears to have the same commands and register init values as the GC9A01 but has different offsets since not all the pixel capability is used. I think this ideally needs another driver file set to avoid confusion. e.g. #define GC9107_DRIVER. This is simple to implement and I may be able find time to update the library the near future. In the meantime I see you have a solution. I assume the display works correctly in all possible rotations 0-3 with the proposed setup file? Correct? |
Beta Was this translation helpful? Give feedback.
-
Yes, all rotations work fine.
If it is just adding the files One thing i was wondering: Lilygo has a different display example whrere they do not need your library but a "custom driver". There the init commands look quite different than the ones in But the ones from |
Beta Was this translation helpful? Give feedback.
-
It is best to use the specific setup recommended b the vendor to get the best out of the display in terms of colour fidelity and Gamma balance. The Lilygo code is useful as it can be adapted. The driver files for init and rotation need to be called up in TFT_eSPI.cpp as well, the location is place marked circa line 700 and line 800. Also in User_Setup_Select.h circa line 200. |
Beta Was this translation helpful? Give feedback.
-
Bodmer: Thank you for all the work you've done and continue to do on the TFT libraries. I use them in a T-QT Pro project I've developed. I concur that it would be very helpful to include a T-QT Pro driver. eni23: Thank you for solving this problem. I had started to go a little crazy after having updated from 2.4.61 to 2.5. Thankfully my head of hair remains.. for now. |
Beta Was this translation helpful? Give feedback.
-
Hi eni23, bodmer, mrudick1, all, |
Beta Was this translation helpful? Give feedback.
-
The display driver is not supported but according to this post the ST7789 driver works: #2201 Note that a screen mirror was reported so the ST7789 driver might need to be adapted. If @eni23 or @mrudick1 can create and test a driver and create a pull request, then I can add it. |
Beta Was this translation helpful? Give feedback.
-
Hi all, I'm sorry because I'm a beginner, so after reading all's answers I still don't know how to use tft-eSPI to drive GC9107, I also use ESP32S3. After reading all the answers, do I understand that just changing Sorry all, I have checked the project carefully again, and I found a commit "Added LilyGo T-QT Support" in |
Beta Was this translation helpful? Give feedback.
-
In order to get the display on a Lilygo T-QT working with TFT_eSPI, there is a change in
TFT_Drivers/GC9A01_Rotation.h
needed, otherwise there is a weird border and the display does not really displays the whole area.The changed file can be found here.
It would be nice to integrate this change in TFT_eSPI upstream somehow so there won't be any need for maintaining a separate repo. Since just changing the file would probably break something else, i'm opening this issue here to ask how it could be done.
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions