tft lcd touch 2.4 shield para arduino mega made in china
-Select-AfghanistanAlbaniaAlgeriaAndorraAngolaAnguillaAntigua and BarbudaArgentinaArmeniaArubaAustraliaAustriaAzerbaijan RepublicBahamasBahrainBangladeshBarbadosBelarusBelgiumBeninBermudaBhutanBosnia and HerzegovinaBotswanaBrazilBrunei DarussalamBulgariaBurkina FasoBurundiCambodiaCameroonCanadaCayman IslandsCentral African RepublicChadChileColombiaComorosCongo, Democratic Republic of theCongo, Republic of theCroatia, Republic ofCyprusCzech RepublicCôte d"Ivoire (Ivory Coast)DenmarkDjiboutiDominicaDominican RepublicEcuadorEgyptEl SalvadorEquatorial GuineaEritreaEstoniaFijiFinlandFranceFrench GuianaFrench PolynesiaGabon RepublicGeorgiaGermanyGhanaGibraltarGreeceGreenlandGrenadaGuernseyGuineaGuinea-BissauGuyanaHaitiHondurasHong KongHungaryIndiaIndonesiaIrelandIsraelItalyJamaicaJapanJerseyJordanKazakhstanKenyaKiribatiKorea, SouthKuwaitKyrgyzstanLaosLatviaLebanonLesothoLiberiaLibyaLiechtensteinLithuaniaLuxembourgMacauMalawiMalaysiaMaldivesMauritaniaMauritiusMayotteMexicoMicronesiaMoldovaMonacoMongoliaMontserratMoroccoMozambiqueNamibiaNauruNepalNetherlandsNetherlands AntillesNew CaledoniaNew ZealandNicaraguaNigerNigeriaNiueNorwayOmanPakistanPalauPanamaPapua New GuineaParaguayPeruPhilippinesPolandPortugalPuerto RicoQatarReunionRomaniaRwandaSaint HelenaSaint Kitts-NevisSaint LuciaSaint Pierre and MiquelonSaint Vincent and the GrenadinesSan MarinoSaudi ArabiaSenegalSerbiaSeychellesSierra LeoneSingaporeSlovakiaSomaliaSouth AfricaSpainSri LankaSurinameSwedenSwitzerlandTaiwanTajikistanTanzaniaThailandTongaTunisiaTurkeyTurkmenistanTurks and Caicos IslandsTuvaluUgandaUnited Arab EmiratesUnited KingdomUnited StatesUruguayUzbekistanVanuatuVatican City StateVenezuelaVietnamWallis and FutunaWestern SaharaWestern SamoaZambiaZimbabwe
First of all, you need to know what driver chip your board is using. The Adafruit library is not sufficient to identify every chip, so the best starting point is R Jennings" "ugly bit basher" that reads raw values from the most likely registers. It will almost certainly find an identifier for your chipset. I put a copy at http://www.ivydene1.co.uk/TFT-reg-read.ino - I hope that R Jennings is content with the attribution for his hard work.
Now, I still had a problem: the entire screen was inverted in the Y-direction, but at least I had got past the initialisation. So the third thing is to correct the inversion of the display. I can see from the threads I"ve read that different displays may invert X or Y or both. There"s an interesting thread at Touch Screen Shield for Arduino UNO – misc.ws which discusses solutions to these sort of problems, and the solution provided by Mike McCauley at comment 41 proved to be the key to solving my third problem. Unfortunately the library and examples he provides did not initialise my chipset properly, but from investigating the Adafruit library code at "Adafruit_TFTLCD.cpp" I was able to see the sequence of instructions needed to properly initialise my display. It was then just a case of replacing the contents of the PROGMEM array at approximately line 567 in Mike"s "TFTLCD.cpp" with those I found in "Adafruit_TFTLCD.cpp" for the 9325 around line 123. I also had to add lines:
around line 33 as well as copy the registers.h file from the Adafruit library to Mike"s library, to save me having to translate all of the Adafruit defined constants for the registers back to numeric values as Mike had done. I"ve uploaded my patched version of Mike"s "TFTLCD.cpp" library at http://www.ivydene1.co.uk/TFTLCD.cpp if anybody wants to see what I did. Mike"s library is big because he has all of the graphics primitives inline, so if you use that, you don"t need the Adafruit GFX library separately.
By the way, if your text is inverted in X or both X&Y, read the comments in Mike"s "TFTLCD.cpp" around line 50 and comment in or out the #define INVERT_X and/or #define INVERT_Y lines as needed.
Let me join in because looks like I got exactly the same display (because it reports the same LCD_ID_readreg output) and I also can"t get it to work. Here it is for reference:
And last, but not least - modules were quite nice packed, UNO and display in separate packs, with air bubbles. I got two and both of them show the same thing. USB connector is isolated (not shorting power coming to regulator on LCD board). Backlight is on... I don"t know...
The shield is fully assembled, tested, and ready to go. No wiring, no soldering! Simply plug it in and load up the library - you"ll have it running in under 10 minutes!
This module is a 2.4-inch TFT LCD module with “320X240” resolution and 65K color display. It is suitable for Arduino Uno and Mega2560 development boards, and also supports SD card expansion function. It uses 8-bit parallel port communication, and the driver IC is ILI9341.
The 2.4-inch display is a ready-made shield for Arduino Uno, which can also be placed on the Arduino Mega. The pins of this shield are designed to be easily installed on the Arduino. The bad point about these modules is that they use all Arduino Uno pins.
Open the downloaded file and upload the main.ino code on your Arduino Board. This code is for testing the display module and comes with full screen calibration.
This is the 2.4 inch touch screen for Arduino UNO and MEGA. It use 8-bit parallel bus, faster than serial SPI refresh , support 16-bit RGB 65K color display, display rich colors , easy to expand the experiment with SD card slot.