retro-esp32 / RetroESP32

Retro ESP32 is a turbo charged Odroid Go Launcher, Emulator and ROM Manager
Creative Commons Attribution Share Alike 4.0 International
590 stars 92 forks source link

Add support for ILI9225 #102

Closed h1aji closed 2 years ago

h1aji commented 2 years ago

Is there any chance to add support for ILI9225? Its a 2.0 or 2.2 inch display 176x220

Driver here: https://github.com/Nkawu/TFT_22_ILI9225

Documentation available here: https://github.com/raek/ili9225_documentation/blob/master/ili9225.md

32teeth commented 2 years ago

" I'd love to add this, but can't even compile to start with. Adding support for other displays, or change pins is easy, but I think the documentation for compile from src is faulty. I asked for help, but no one seems to know. :("

Polite Notice

Please keep the conversation to the feature positioned, not an issue you are having elsewhere.

@h1aji Shouldn't be an issue, i'll see if we can get our hands on a module In the meantime, you can add a new config for ILI9225

Take a look at these lines in their source code

Just needs to be converted manually to something like this - DRAM_ATTR static const ili_init_cmd_t ili_init_cmds[]

h1aji commented 2 years ago

Would you be able to advise list of files that needs to be modified? I want to give it a try. Thanks

32teeth commented 2 years ago

@h1aji

Can you confirm that your ILI9225 is SPI or Parallel interface? Additionally, the resolution ILI9225 is 176 x 220... ...which will NOT display properly for most of the emulators output

Take a look at nopnop2002 driver. code lines are highlighted

If you can get that running on your device. Next steps would be to take the above lines of code

I will see if i can find a 9225 locally

h1aji commented 2 years ago

I am using SPI. Yeah, I am worried about resolution, but I wanted to give it a try to see how it looks.

If you can get that running on your device.

I will try and will get back to you. Thanks

h1aji commented 2 years ago

@32teeth I tested the library and it works fine. I also found - https://github.com/Bodmer/TFT_eSPI Tried few demos (VU meter and ping pong) and it works very nice. IMG_20220117_132330_119

fzorb commented 2 years ago

if you want a DIY project, check this out https://www.instructables.com/Homemade-Odroid-go-Compatible-Game-Console/

h1aji commented 2 years ago

@Skyde72 thanks, but I wasnt asking for instructions how to make it. I asked for ILI9225 lcd support

h1aji commented 2 years ago

screen is too small. not worth it