Using Esp Idf framework and not configuring display and touch in ESPHome

Hi,
I am trying to work with Waveshare ESP32C6 1.83 device.

I am not able to get the display initialized correctly with the following esphome configuration:

display: 
  - platform: st7789v
    model: custom
    cs_pin: 5
    dc_pin: 3
    reset_pin: 4
    setup_priority: -100  # Initialize first
    width: 240
    height: 284
    offset_width: 0
    offset_height: 0
    id: my_display

I tried using esp idf framework along with above display configuration and could not get it to work

esp32:
  board: "esp32-c6-devkitc-1"
  variant: "ESP32C6"
  flash_size: 16MB
  framework:
    type: esp-idf

How can I use esp idf framewaork and not worry about configuring display and touchscreen of the device ?

Your help is appreciated.

Thanking you
Satish Rajanna

I’m not sure how to read your question… Just remove the display component from your code.

@Karosm , thank you for your response. I am using lvgl to display widget on the screen. Lvgl would need display option and also touchscreen.

Probably my yaml configuration will explain better
My yaml configuration is as below:

But you specifically asked not to configure display and touch…

sorry for the confusion. I want to use edp idf framework and not have to configure the display and touch in yaml. The yaml configuration does not work as expected. But I need the display and touchscreen configuration from esp idf and not yaml.

You still need to provide the display and touchscreen configurations in yaml. I was mistaken. Sorry for the confusion.