Re: ESP32 TFT display library
Posted: Thu Aug 02, 2018 3:16 pm
Is there some register call to wait for Vsync ?
I am getting tearing effect after spi loads full tft frame
I am getting tearing effect after spi loads full tft frame
Please share your wiring with us, as the poster before mentioned, it isn't quite clear what was meant.JanJansen47 wrote: ↑Tue Jun 20, 2017 12:29 pmI measured the signals with a scope and found a strange signal on the SDO from TFT and Touch (same line). I disconnected the SDO connection from the TFT and directly wired it to the Touch.
At least TFT and touch is working for now. But it does not feel okay. So I ask the supplier.
My wiring is available on request.
Code: Select all
#define TFT_RGB_BGR 0x00
Hi jeremyjh,jeremyjh wrote: ↑Thu Sep 26, 2019 10:32 pm@huybk213 Hopefully you figured it out, but for anyone else you just need to change the RGB settings; by default it uses GBR, to change to RGB in tftspi.h
I also wanted to mention, anyone who wants to use this library with the 4.0 release branch, my fork supports this and also supports making all of these common config changes through menuconfig; so you can use that to set your controller, RGB options, touch mode etc. I also consolidated the open PRs in this branch.Code: Select all
#define TFT_RGB_BGR 0x00
https://github.com/jeremyjh/ESP32_TFT_library
Code: Select all
Building in: C:\Users\User1\Dropbox\coding\ESP-IDF\Eclipse_IDE_C_C++\ESP32_TFT_library-master\build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\Users\User1\esp-idf\tools\cmake\toolchain-esp32.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DIDF_TARGET=esp32 C:\Users\User1\Dropbox\coding\ESP-IDF\Eclipse_IDE_C_C++\ESP32_TFT_library-master
-- mconf-idf version mconf-v4.6.0.0-idf-20190628-win32
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Project version: 1
-- Building ESP-IDF components for target esp32
-- Checking Python dependencies...
Python requirements from C:\Users\User1\esp-idf\requirements.txt are satisfied.
Loading defaults file C:/Users/User1/Dropbox/coding/ESP-IDF/Eclipse_IDE_C_C++/ESP32_TFT_library-master/sdkconfig.defaults...
C:/Users/User1/Dropbox/coding/ESP-IDF/Eclipse_IDE_C_C++/ESP32_TFT_library-master/sdkconfig.defaults:9 CONFIG_MAIN_TASK_STACK_SIZE was replaced with CONFIG_ESP_MAIN_TASK_STACK_SIZE
C:/Users/User1/Dropbox/coding/ESP-IDF/Eclipse_IDE_C_C++/ESP32_TFT_library-master/sdkconfig.defaults:10 CONFIG_TASK_WDT_TIMEOUT_S was replaced with CONFIG_ESP_TASK_WDT_TIMEOUT_S
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- Adding linker script C:/Users/User1/Dropbox/coding/ESP-IDF/Eclipse_IDE_C_C++/ESP32_TFT_library-master/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/User1/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Users/User1/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Users/User1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/User1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/User1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/User1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/User1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
CMake Error at C:/Users/User1/esp-idf/tools/cmake/component.cmake:280 (foreach):
Syntax error in cmake code at
C:/Users/User1/esp-idf/tools/cmake/component.cmake:280
when parsing string
C:/Users/User1/Dropbox/coding/ESP-IDF/Eclipse_IDE_C_C++/ESP32_TFT_library-master/main;C:\Users\User1\esp-idf\/components
Invalid character escape '\U'.
Call Stack (most recent call first):
C:/Users/User1/esp-idf/tools/cmake/component.cmake:447 (__component_add_include_dirs)
main/CMakeLists.txt:2 (idf_component_register)
-- Configuring incomplete, errors occurred!
See also "C:/Users/User1/Dropbox/coding/ESP-IDF/Eclipse_IDE_C_C++/ESP32_TFT_library-master/build/CMakeFiles/CMakeOutput.log".
cmake --build . -- -v
ninja: error: loading 'build.ninja': The system cannot find the file specified.
Build complete (0 errors, 0 warnings): C:\Users\User1\Dropbox\coding\ESP-IDF\Eclipse_IDE_C_C++\ESP32_TFT_library-master\build