Screen Orientation Issue on LILYGO T Display S3 LONG #493
Replies: 2 comments
-
It have a Canvas class in the middle. And the canvas class have the software rotation features. |
Beta Was this translation helpful? Give feedback.
-
Thank you for responding. Besides configuring the rotation on "Arduino_GFX *gfx = new Arduino_Canvas", the issue was also caused by "LV_COLOR_16_SWAP 1" in the file lv_conf.h, which needs to be set to "0". Therefore, I ran the sketch as follows: // In lv_conf.h configure LV_COLOR_16_SWAP to 0 // #define LV_COLOR_16_SWAP 0 // #include "lv_demo_benchmark.h" #define GFX_BL 1 #include "touch.h" /* Change to your screen resolution */ /* Display flushing */ #if (LV_COLOR_16_SWAP != 0) lv_disp_flush_ready(disp); void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
} void setup() #ifdef GFX_EXTRA_PRE_INIT // Init Display #ifdef GFX_BL // Init touch device lv_init(); screenWidth = gfx->width(); #ifdef DIRECT_MODE #ifdef ESP32
#ifdef DIRECT_MODE
} void loop() #ifdef DIRECT_MODE #ifdef CANVAS delay(5); |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm not experienced in programming, but I'm learning. I tried this sketch https://github.com/moononournation/Arduino_GFX/blob/master/examples/LVGL/LvglBenchmark/LvglBenchmark.ino on my LILYGO T Display S3 LONG, but I can't get it to display in landscape mode. I tried using rotation, but it doesn't display correctly. Your video https://www.youtube.com/watch?v=OuxLFwxvcVc shows the benchmark displayed in landscape mode, can you explain how to do it? Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions