Looking for sample ESP-IDF code that works on TTGO-T-Display

Description

attempting to use LVGL sample code causes boot loops

What MCU/Processor/Board and compiler are you using?

LILYGO ESP32 T-Display Module
ESP32 S3 T-Display

What do you want to achieve?

write hello world with ESP-IDF library

What have you tried so far?

https://projectitis.com/getting-ttgo-esp32-based-t-display-to-work/

when i tried uploading the s3 code to s3 card the first time display didn’t work, and now i can’t upload anything to it cause it says the port doesn’t exist (even though i can see it in the device manager)
the s3 will display on the first try:

E (969) lcd_panel.io.i2c: panel_io_i2c_rx_buffer(135): i2c transaction failed
E (969) CST816S: read_id(192): I2C read failed
E (969) CST816S: esp_lcd_touch_new_i2c_cst816s(90): Read version failed

assert failed: xQueueGiveFromISR queue.c:1224 (pxQueue)


Backtrace: 0x40375f0a:0x3fc94410 0x4037bd35:0x3fc94430 0x40381621:0x3fc94450 0x4037c9d6:0x3fc94570 0x42008b85:0x3fc94590 0x40377cb1:0x3fc945c0 0x403772cd:0x3fc945e0 0x4203645f:0x3fc9a410 0x42036dd7:0x3fc9a440 0x42036f32:0x3fc9a4a0 0x420094c3:0x3fc9a4e0 0x420096e6:0x3fc9a500 0x42009024:0x3fc9a550 0x42008ad1:0x3fc9a700 0x4204f3f7:0x3fc9a730 0x4037e985:0x3fc9a760
0x40375f0a: panic_abort at C:/Users/User/esp/esp-idf502/esp-idf/components/esp_system/panic.c:423

0x4037bd35: esp_system_abort at C:/Users/User/esp/esp-idf502/esp-idf/components/esp_system/esp_system.c:153

0x40381621: __assert_func at C:/Users/User/esp/esp-idf502/esp-idf/components/newlib/assert.c:78

0x4037c9d6: xQueueGiveFromISR at C:/Users/User/esp/esp-idf502/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1224 (discriminator 1)

0x42008b85: touch_callback at C:/Users/User/Documents/PlatformIO/Projects/esp32-s3-lilygo/T-Display-S3-esp-idf/components/lvgl_setup/lvgl_setup.c:71

0x40377cb1: gpio_isr_loop at C:/Users/User/esp/esp-idf502/esp-idf/components/driver/gpio/gpio.c:429
 (inlined by) gpio_intr_service at C:/Users/User/esp/esp-idf502/esp-idf/components/driver/gpio/gpio.c:451

0x403772cd: _xt_medint2 at C:/Users/User/esp/esp-idf502/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/xtensa_vectors.S:1207

0x4203645f: gpio_od_disable at C:/Users/User/esp/esp-idf502/esp-idf/components/driver/gpio/gpio.c:218 (discriminator 2)

0x42036dd7: gpio_config at C:/Users/User/esp/esp-idf502/esp-idf/components/driver/gpio/gpio.c:356

the esp32 card can be uploaded but i keep gettting boot loop