How To Use 24 TFT LCD Shield With Arduino Mega PDF
How To Use 24 TFT LCD Shield With Arduino Mega PDF
Table of Contents
Intro: How to use 2.4" TFT LCD Shield with Arduino Mega . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Step 1: Assembly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
http://www.instructables.com/id/How-to-Use-24-TFT-LCD-Shield-With-Arduino-Mega/
Author:Bay Yolal My Personal Website
My personal website describes me at least: http://www.onuryolal.com
Intro: How to use 2.4" TFT LCD Shield with Arduino Mega
Hello!
We want to use 2.4" TFT LCD shield (There is mcufriend.com writes on this shield) works with Arduino Mega, because it is not so easy to run each other. But with this
instructions, you can run and modify codes easily according to this tutorial.
Step 1: Assembly
This step is very easy. But please focus on Arduino Mega's Power side's Vin and between Analog In's A0 pins. This gap is our referance point to put this shield on
Arduino Mega.
#include "SWTFT.h"
SWTFT tft;
tft.reset();
uint16_t identifier = tft.readID(); Serial.print("Your LCD driver chip name is: "); Serial.println(identifier, HEX); tft.begin(identifier); Serial.println("Working Well"); }
unsigned long testText() { tft.fillScreen(0x0000); unsigned long start = micros(); tft.setCursor(0, 0); tft.println(); tft.setTextColor(0xFFFF); tft.setTextSize(3);
tft.println("Hello World!"); tft.println(); tft.setTextColor(0xFFE0); tft.setTextSize(2); tft.println("A Yellow Text Here"); tft.println(); tft.setTextColor(0x07E0);
tft.setTextSize(3); tft.println("A Green Text Here");
On your Arduino IDE, select your COM port, select your board as Arduino Mega. Then upload these codes into your Arduino Mega board. You will see your codes are
http://www.instructables.com/id/How-to-Use-24-TFT-LCD-Shield-With-Arduino-Mega/
simply working.
File Downloads
SWTFT.h (3 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'SWTFT.h']
Adafruit_GFX.h (3 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Adafruit_GFX.h']
Step 4: Other Informations
This work is depending on these materials:
Note: I only edit these codes to make all easy for beginners and who wants speed programming. But I also worked a little bit on it. Check the video above for original
codes.
http://www.instructables.com/id/How-to-Use-24-TFT-LCD-Shield-With-Arduino-Mega/
Related Instructables
Advertisements
Comments
http://www.instructables.com/id/How-to-Use-24-TFT-LCD-Shield-With-Arduino-Mega/