Page 1 of 1

How to use ESD with EVE2-38G

Posted: Mon Jul 04, 2022 7:48 am
by jgb
Hello,

currently I am trying to start a project with EVE Screen Designer 4.15.1.0 for the EVE2-38G display with the MM900EV-Lite as host.
I am somewhat at a loss, however, when it comes to select the right target for the project.
Trying to define a new target instead, I can't seem to find the right EVE platform or display. I know the controller is an FT813 and the resolution is 480x116, but this does not lead me anywhere.

What am I doing wrong?

Cheers,
JG

Re: How to use ESD with EVE2-38G

Posted: Thu Jul 07, 2022 4:30 pm
by Raquel
Hello JG,

Thank you for posting on the forum.

Please check out this guide

Let me know how it turns out.
Thank you,

Re: How to use ESD with EVE2-38G

Posted: Fri Jul 08, 2022 5:03 am
by jgb
Hello Raquel,

thank you for the hint. I followed the guide.

I managed completing step 4 in the guide, but was unable to find the ifdef block in step 6. I assume it is gone, since the guide is nearly three years old. I trust capacitive touch is already configured all right in EVE_Util.c because it sets up some registers for Goodix touch support.

However, I got the impression that the EVE2-38G is not supported at all in EVE Screen Designer, so I changed a couple other things:

EVE_Config.h:
* Line 124: Uncommented 'ESD_TARGET_GRAPHICS(EVE_GRAPHICS_FT813 ...' and added parameter 'SupportedFlash = "(?=a)b"' to it, since the EVE2-38G has the FT813 and no flash, and added '|\b\w+GOODIX\w*\b' to the 'SupportedTouch' parameter, since the EVE2-38G has the Goodix touch screen
* Line 135: Added 'ESD_TARGET_DISPLAY(EVE_DISPLAY_480x116, DisplayName = "EVE2-38 (480x116)")' since there was no appropriate display defined yet
* Line 313: Added '|| defined(EVE_DISPLAY_480x116)' to the conditions when 'EVE_DISPLAY_AVAILABLE' gets defined, in order to make the new display actually usable
* Line 1204: Added '#elif defined(EVE_DISPLAY_480x116) #define DISPLAY_RESOLUTION_480x116' to the display resolutions

EVE_Util.c:
* Line 52: Added '{ 480, 116, 60, 0 },' to the 's_DisplayResolutions' array
* Line 71: Added '"BAR 480x116 60Hz",' to the 's_DisplayNames' array
* Line 536: Added '#elif defined(DISPLAY_RESOLUTION_480x116) display = EVE_DISPLAY_480x116_60Hz;' to the initialization of 'display' variable
* Line 584: Added an else-if-block with specific resolution and timing values to the initialization of the 'config' struct.

EVE_Util.h:
* Line 98: Added 'EVE_DISPLAY_480x116_60Hz,' to the 'EVE_DISPLAY_T' enum typedef

Quite a bunch and hopefully all builds well.
For now ESD at least accepts my changes and I can set up a project with the proper display and all.

JG