ESP32 + ILI9341 + Arduino + lv_drivers


Trying to understand how to use the ILI9341 driver from lv_drivers.
What I think I need to do is make some sort of a HAL interface for Arduino to connect the hardware, eg, fill in the macro´s for LV_DRV_DISP_SPI_CS(1); so it can start communicating of SPI, perhaps using SPI.h from arduino?

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


What do you want to achieve?

Instead of using TFT_eSPI use the ILI9341 driver from lv_drivers.

What have you tried so far?

I can compile and run my project using native mode, eg, run in SDL2 and can compile the same code on ESP32 with Arduino using platformio ( did not run that yet). I have searching her and on the forum and internet to see if there are already similar projects doing the same thing, I could have overlooked… I did not see any interface for ILI9341 + Arduino.

So essentially I am trying to make sure that

  • I am not making something that already exists
  • Make sure I don´t mis anything crucial.
  • Somebody can put me on the right track if this needs to be made.
  • Perhaps I would like to know if there is any advantage of using lv_drivers instead of TFT_eSPI aswell…

I have it running with TFT_eSPI based on the lv_arduino example. (PS I cannot edit my post?!)

Look at here

Does that mean I don´t need lv_drivers but just use lv_port_esp32, configure it and go from there?