So a while back I decided to get back into the microcontrollers and was at the store and they had a sainsmart 4.3" tft lcd, I have a mega 2560 I'm wiring it to, it has the 40 pin connector, I know they have a shield it snaps into and then pops directly on the mega but for the internal layout of the case its going into I need the flexability of wires.
Using the pinout pdf and the calibration and example libraries I think ive got the wiring almost figured out, except when I load a library I get a blank white screen.
So the wiring is as follows:
Shield/TFT Arduino MEGA pins (section)
DB0-DB7,DB8-DB15 D37-D30,D22-D29 - 16-bit data for screen
RS, WR, CS, RST 38, 39, 40, 41 (Digital) - Screen control signals
LED-A, VCC, GND 3.3V, 5V, GND (Power) - Power
SD_OUT 50 (Digital) - SD Card reader
SD_CLK 51 (Digital) - SD Card reader
SD_IN 52 (Digital) - SD Card reader
SD_CS 53 (Digital) - SD Card reader
------ 42-49 (Digital) - Free pins
D_CLK 6 (PWM -also digital) - Touch controller
D_CS 5 (PWM -also digital) - Touch controller
D_IN 4 (PWM -also digital) - Touch controller
D_OUT 3 (PWM -also digital) - Touch controller
D_IRQ 2 (PWM -also digital) - Touch controller
And the sketch I'm using is the Utouch calibration hat I was directed to use, I would post but its telling me it has a length error. I'm going o try to attach the example, not sure if it will let me.
I have already figured out the font issue with the supplied lib, and it is compiling and loading fine.
Also was wondering is there any of the pins that go to the I2C that I've stuck in the wrong place?
So as I was saying the screen is just white, and I've been tinkering wih it to try to find out if I'm missing something, like I have a "RD" on the pinout and it's excaping me as to what its for, also the documentation shows the DATA pins as I have listed above, while I see elsewhere that DB0-DB15 go to pins D22-D37 respectively in that order so not sure where my problem lies but if someone has this tft and could throw me a hint as where I goin wrong I'd much appreciate it.
UTouch_Calibration.ino (9.71 KB)