I am trying to write a code to display text in my TFT screen using Arduino Mega 2560 board.
The shield is connected to board such that the SD cad slot with it is on the USB connector side. I belive that shield is properly plugged in at least.
I have a code written and running successfully for same TFT screen with Arduino Uno board. After downloading the code on to Arduino Mega 2560 board the screen remains blank. Below is my part of code. I believe that the issue is with the PIN set I have to make use.
#include <ITDB02.h>
ITDB02 lcd(0,1,2,3,4,5,6,7,19,18,17,16);
I am a bit confused of the PINs to set for Mega 2560. I don't remember how for UNO I got this from website but some combinations I achieved success. Other website tells me to use the below way -
#include <UTFT.h>
myGLCD(38,39,40,41,ITDB32S) ;
OR
myGLCD(ITDB32S, 38,39,40,41) ;
But neither ways I am successfully able to see and output in the TFT screen
Anyone who faced the same issue can yo please guide me accordingly - any sample working would be best for clarity or the PIN mapping would also help me out.
Thanks in advance.