Arduino Mega2560 with 3.2' TFT display

Hey so i bought this display that comes with the (knockoff) Arduino mega2560.

I'm using rinky dink's UTFT liberary so i loaded the UTFT_Demo_400x240 example sketch to test my display. I also changed the model parameter to - UTFT myGLCD(ILI9327,38,39,40,41);

When i upload the sketch it succsesfully uploads, but nothing happens.

Any idea what i did wrong here? maybe i should also change the pin parameters?

Your link shows an Open-Smart Shield.
It is not supported by UTFT

It is supported by the regular MCUFRIEND_kbv library but you have to configure two library files.
i.e. install via IDE Library Manager
i.e. follow instructions in C:\Users...\Documents\Arduino\libraries\Mcufriend_kbv\extras\mcufriend_how_to.txt

19. OPEN-SMART Shields have different wiring to regular Uno Shields:
    Edit utility/mcufriend_shield.h:  #define USE_SPECIAL
    Edit utility/mcufriend_special.h: #define USE_OPENSMART_SHIELD_PINOUT_xxx e.g. USE_OPENSMART_SHIELD_PINOUT_MEGA

Open Smart probably supply a hacked library from an obsolete version of MCUFRIEND_kbv
I strongly advise you to delete any hacked libraries.
Always install the genuine versions of Adafruit_GFX, MCUFRIEND_kbv, ... via the IDE Library Manager.

David.

Thank you for the quick response! I will definitely try what you suggested :+1:

Sorry if I'm being a total noob here, but should i simply copy and paste these two lines:Edit utility/mcufriend_shield.h: #define USE_SPECIAL Edit utility/mcufriend_special.h: #define USE_OPENSMART_SHIELD_PINOUT_xxx e.g. USE_OPENSMART_SHIELD_PINOUT_MEGA
into the graphictest_kbv?

No, you edit the library files e.g. in Notepad

Both edits are simple you just delete the // on the line

Okay, thanks. anyway, why not using OpenSmart's hacked mcufriend library? everything is already pretty much configured

If Open Smart were to ask me, I would make the support easier.

They have never asked. They choose to hack instead. Which they are perfectly entitled to do. But I would be much happier if they chose a unique name for their hacked class.

I presume that their "hack" will prevent all of the regular shields working with MCUFRIEND_kbv.

David.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.