PicoLibSDK icon indicating copy to clipboard operation
PicoLibSDK copied to clipboard

[Question] Alternative display driver ILI9341

Open dolomon opened this issue 10 months ago • 2 comments

Describe the problem you're trying to solve

Include support for 320 x 240 TFT using ILI9341 driver.

Describe the solution you have in mind

I understand the SDK is written with the Picopad hardware at it's core (which uses the ST7789 driver IC)

I had an lcd in my parts drawer which uses the ILI9341 driver. It does actually work somewhat without changing anything but colour mapping is incorrect and image is flipped in the X axis.

Looking through the datasheet it seems very similar to the ST7789 and supports 80mHz Clock, has more ram than the ST7789?

Would it be much work to add a fast library to interface the ILI9341 display?

Additional context

I am very new to coding and it is beyond my means to implement the driver myself, but interested to learn. I am not looking to implement the touch functionality on the display, the pico has enough to do without it :)

Datasheet for ILI9341

ILI9341.pdf

The display model: https://www.displaysmodule.com/quality-35901242-2-8-lcd-module-spi-display-module-240-320-2-8-inch-ili9341-spi-tft-lcd-display

Thank you for the awesome project.

dolomon avatar Mar 02 '25 10:03 dolomon

The 9341 has commands quite similar to the 7789. To fix the X direction, it should be enough to change the bits in the MADCTL register settings (command ST7789_MADCTL 0x36 in the 7789 driver). To fix the colors the COLMOD register setting needs to be checked (command ST7789_COLMOD 0x3A in the 7789 driver), there seems to be some difference.

Panda381 avatar Mar 02 '25 22:03 Panda381

Thank you for the nod in the right direction.

I will go and study some more.

dolomon avatar Mar 05 '25 04:03 dolomon