This is a working example using the espidf to drive the display + touch for this kit
https://www.amazon.ca/dp/B0C2K34N7Q?ref=ppx_yo2ov_dt_b_fed_asin_title
Setup the ST7769 + ft6336u touch display with lvgl
Simple demo to display UI with a button allowing screen rotation