pebri86 / esplay_micro_hardware

Micro version of esplay hardware, ESP32 based gaming console
229 stars 49 forks source link

ILI9342 smaller screen? #12

Closed eggfly closed 2 years ago

eggfly commented 2 years ago

Hi! Thank you for such a great project! I have a small question: I found this ILI9342 source code in firmware project: https://github.com/pebri86/esplay-retro-emulation/blob/cf68ea80ea34987592b4fb1ba650a074ea85b839/esplay-sdk/esplay-components/esplay-hal/src/ili9342.c

Does that mean we can switch to a smaller screen than 2.4-inch screen (2.0-inch 320x240 TFT screen)?

Thank you!

32teeth commented 2 years ago

ILI9342 Support

Yes, any ILI934/C LCD will work with this.

Things to consider

If it is a C variant (ILI9342C) there are a few addresses to add / omit. Take a look at our odroid_display.c specifically this line

{0x36, {(MADCTL_MX | MADCTL_MY | TFT_RGB_BGR)}, 1},