-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Feature request - support for ST7789 1.14" 135x240 TFT #379
Comments
Adding configurable offsets is on my to do list but it may be quite a while before I can find time to make and test the changes. |
Sure, but what about a driver for it? I suppose it would help people like me, who bought this screen |
I do not have one of those displays to test the offsets. I suspect that the offsets in the list you gave are not correct, in two places 52 should be 53. This is because 52+135+53 = 240. You can check by drawing rectangles in the periphery pixels (135x240 and 240x135) for each rotation and seeing if a row is missing. I suspect the correct offsets are: |
Yes, you're absolutely right. This one is correct, checked it with drawrectangle:
test loop:
Observed result - white border around screen on all its sides |
OK, this is helpful info. I can create a driver set for you but this wil be a temporary solution as eventually the library will allow offsets to be defined for each rotation in the setup. Due to work commitments it will be a few days before I have time to create the driver for you to test. |
Thank you. Just in case - I made a working driver, not sure is it correct, but it works on all examples you included as well as with some I made myself. Here's an archive that also contains a small video confirming everything works fine https://tut.etogo.net/in/tft_espi.135x240.st7789v.tgz |
Really gotta get setup offsets in the library heh this is going to get hairy |
Relates to Issue #1 in the Xinyuan-LilyGO/TTGO-T-Display repo. |
fyi |
Hmm I can confirm this works, but I cannot seem to get the display to rotate.. EDIT: |
Added support for ST7789 135 x 240 display which needs offsets Added Setup135_ST7789.h as an example setup file for ESP8266
I have made some changes and added a new user setup file "Setup135_ST7789.h" that shows how to define the required setup. Let me know if this works OK for you. |
There's a lot of 135x240 TFT screens available on ebay and aliexpress. They do work with ST7789 driver, except they have different colstart and rowstart values. It's colstart = 52 and rowstart = 40 for rotation 0 and so on accordingly. Is it possible to add support for such a displays? Currently I have modified standard headers changing ST7789_Rotation.h but it will be nice probably to move it to the dedicated driver. It's good that width and height can be changed via #define but these offsets cannot, as far as I understand the code.
Thank you.
The text was updated successfully, but these errors were encountered: