Tutorial Display TFT
Tutorial Display TFT
Features
Pinouts of the TFT are shown in the picture above. Connect the TFT pin to Arduino as shown in the table below.
also connect 1KΩ resistors to all the data lines of TFT pins 1 , 2, 3, 4, 5. I have also connected a 100 Ω resistor
between pin 7. BL and +5V.
TFT UNO
5. Clk >1KΩ> 13
4. DIN >1KΩ> 11
3. D/C >1KΩ> 9
2. CE >1KΩ> 10
1. RST >1KΩ> 8
6. VCC +5V
7. BL >100Ω> +5V
8. GND GND
The full setup is shown in picture below.
Software Setup:
Open the Arduino IDE and from Menu "Manage libraries " Install the "Ucglib by oliver" library.
#include <SPI.h>
#include "Ucglib.h"
void setup(void)
{
delay(1000);
ucg.begin(UCG_FONT_MODE_TRANSPARENT);
ucg.clearScreen();
}
void loop(void)
{
ucg.setFont(ucg_font_ncenR12_tr);
ucg.setColor(255, 0, 0);
ucg.setPrintPos(10,25);
ucg.print("Hello World!");
ucg.setColor(0, 0, 255);
ucg.setPrintPos(50,60);
ucg.print("By");