ducalex / retro-go

Retro emulation for the ODROID-GO and other ESP32 devices
GNU General Public License v2.0
543 stars 125 forks source link

[Feature] - ST7701S SPI LCD Driver #87

Open 32teeth opened 1 year ago

32teeth commented 1 year ago

Hey @ducalex

Wondering if we could implement support for 4" 480x480 Wide Temperature IPS TFT Display with ST7701S driver IC, looking through the white papers doesn't seem anything blocking.

I have ordered a kit from AliExpress be it through the 3.4" version

Looking for your guidance / feedback / thoughts?

mikeinkl1 commented 1 year ago

Cant see why it should not work, but 480x480 spi will be slow. The datasheet doesnt say what the max clock frequency is but see https://github.com/juj/fbcp-ili9341 for whats possible in terms of fps.

32teeth commented 1 year ago

I'll wait for my AliExpress order to come in (i got the one with the breakout board) and i'll see what i can do

ducalex commented 1 year ago

It will use more internal memory and it will definitely be slower to blit but if it can run at 80Mhz it will help.

The scaling code will probably be possible to optimize a lot too, offsetting some of the speed impact. Because you can fit more integer scales in 480x480 (eg gameboy could do 3x and leave very little empty space) so you could skip the bilinear filtering and temporary buffers and floats math and whatnot.