[Feature Request]: ST7789 TFT Rotate 90 Degrees #4762
Replies: 9 comments
-
Just for some background info, what does your platformio.ini and variant.h file look like so far? |
Beta Was this translation helpful? Give feedback.
-
In the variant.h file you can specify the display orientation with the TFT_OFFSET_ROTATION macro. |
Beta Was this translation helpful? Give feedback.
-
Hi thanks for the detail, I did think this, but the changes don't take, the landscape display remains persistent. Here is a code snip, let me know if you see anything wrong:
Just tried with my custom NRF52 and get the same results. |
Beta Was this translation helpful? Give feedback.
-
As Todd-Herbert also asked, he can you copy the full platformio.ini and variant.h file? |
Beta Was this translation helpful? Give feedback.
-
I can think that -DT_WATCH_S3 is in the platformio.ini file and the directive at the bottom of TFTDisplay.cpp overrides the orientation. |
Beta Was this translation helpful? Give feedback.
-
Hi, focusing on NRF so I don't need to rearrange my desk. NRF ini: `; First prototype nrf52840/sx1262 device add -DCFG_SYSVIEW if you want to use the Segger systemview tool for OS profiling.build_flags = ${nrf52840_base.build_flags} -D PRIVATE_HW -Ivariants/tst2NRF build_src_filter = ${nrf52_base.build_src_filter} +<../variants/heltec_mesh_node_t114> |
Beta Was this translation helpful? Give feedback.
-
If you define It seems like most devices with ST7789 are using the LovyanGFX library. I'm not personally familiar with it, but it seems like it should be possible to use it instead of the Heltec library if you follow variant.h file for the picomputer-s3 I'm not sure if LovyanGFX is compatible with NRF52 or not. If you do need to Heltec's ST7789 library, I can give a general description of how to rotate the display, but the process is quite complicated. |
Beta Was this translation helpful? Give feedback.
-
Understood, I'm starting to understand how things works now in terms of how the libs are used (but not enough to solve this issue). With that line commented, the screen doesn't turn on anymore, no backlight and as far as I can see (with a torch) nothing displayed).
So I think I need to use Heltec's ST7789, yes please, any direction will be much appreciated. |
Beta Was this translation helpful? Give feedback.
-
It still confuses me myself! Just one other option to explore: other than the Heltec T114, I can see one other NRF52 device with a TFT display: RAK10701. As for Heltec's ST7789 library, it seems like the display config is hard-coded into the library. Looking through this file, you will see several occurrences of It's quite likely that removing You may also need to adjust the display resolution. You would need to change the values being sent with I'm attaching the datasheet for ST7789, in case it helps to see a more technical explanation of these config options. Note that changes made to your Let me know how you get on! |
Beta Was this translation helpful? Give feedback.
-
Platform
NRF52
Description
Hi,
I have a custom NRF52 ST7789 combo. I want to be able to rotate the 240x240 display by 90degrees. Is this possible?
Tried various software build configurations, but no luck.
Beta Was this translation helpful? Give feedback.
All reactions