Quote:
Originally Posted by stugray
I have been messing around with the ITEAD 2.8" ITDB02 LCD/Touchscreen combo arduino shield.
When I plug it into the Arduino Leonardo, I can get it to work fine for my application, but I dont have enough EEPROM for the SDCard library.
So I got a Mega, and the shield doesnt "just work" like it did with the Leo & UTFT Lib.
So now I want to get it to work in serial mode, but havent messed with it much.
If I could get that working I would try to get the touchscreen to work for very basic gestures.
|
So, the issue is possibly that some of the spi specific pins on the mega are different. Don't use serial mode, it's probably slow as crap.
https://learn.adafruit.com/1-8-tft-d...eed-spi-wiring Shows you the different pins. The rest of the tutorial is probably not helpful for your setup.
"On Atmega 328/168/8 type Arduinos ('classic' type) the hardware SPI pins are 11 (MOSI), 13 (SCK) and 10 (CS). For Megas it is 51 (MOSI), 52 (SCK), and 53 (CS). The CS pin can be a different pin but if you use any other pin you must still have the hardware SPI CS pin (10 or 53) as an output!"