banner



1.44 Inch Tft Lcd Color Screen Module Spi Interface

1.44 Inch Tft Lcd Color Screen Module Spi Interface

Table of Contents

1.44-INCH SPI TFT Color Screen Module Features

The TFT display is a kind of liquid crystal LCD that is connected to each pixel using a transistor, and information technology features low current consumption, high-quality, loftier-resolution and backlight. This 1.44-inch full color LCD has a narrow PCB display. The resolution is 128×128 pixels, and it has a 4-wire SPI interface and a white backlight.

To download the datasheet of this module, click here.

Icon

one.44-INCH SPI TFT Color Screen Module Pinout

This module has 8 pins:

  • 3V: Module ability supply
  • GND: Footing
  • MOSI: SPI bus write data signal
  • SCK: SPI coach clock signal
  • CS: LCD chip select signal
  • RESET: Reset module
  • DC: Data line/ module command
  • LED: Backlight control

Yous can see the pinout of this module in the image below.

Required Materials

Hardware Components

ESP32 × 1
ane.44 INCH TFT Brandish Module × 1
Male to Female person Jumper Wire × 1

Software Apps

Interfacing 1.44-INCH SPI TFT Color Screen Module with ESP32

Stride i: Circuit

The following excursion shows how you should connect ESP32 to this module. Connect wires appropriately.

Step 2: Library

Tip

Open up the library binder and wait for theTFT_ILI9163C file.

Then get to the _ settings folder and open up theTFT_ILI9163C_settings.h file.

At the beginning of the file, alter the settings as shown beneath.

                //DID YOU HAVE A Ruby PCB, BLACk PCB or WHAT DISPLAY TYPE? //  ---> SELECT HERE <---- //#ascertain __144_RED_PCB__//128x128 #define __144_BLACK_PCB__//128x128 //#define __22_RED_PCB__//240x320                              

Step three: Code

Upload the following lawmaking to your ESP32.

                /*   Modify on March 17, 2021   Modify by MohammedDamirchi base of https://github.com/sumotoy/TFT_ILI9163C                  
Home
*/ #include <SPI.h> #include <Adafruit_GFX.h> #include <TFT_ILI9163C.h> // Color definitions #define BLACK 0x0000 #define Bluish 0x001F #define Reddish 0xF800 #define GREEN 0x07E0 #ascertain CYAN 0x07FF #define MAGENTA 0xF81F #ascertain YELLOW 0xFFE0 #define WHITE 0xFFFF /* Teensy3.x and Arduino'due south You are using 4 wire SPI hither, and then: MOSI: 11//Teensy3.x/Arduino UNO (for MEGA/DUE refere to arduino site) MISO: 12//Teensy3.x/Arduino UNO (for MEGA/DUE refere to arduino site) SCK: xiii//Teensy3.10/Arduino UNO (for MEGA/DUE refere to arduino site) the remainder of pivot below: */ #define __CS 2 #define __DC 4 /* Teensy three.10 can use: two,6,9,x,15,20,21,22,23 Arduino'southward viii chip: any DUE: check arduino site If y'all do not use reset, tie it to +3V3 */ TFT_ILI9163C tft = TFT_ILI9163C(__CS, __DC); void setup() { tft.brainstorm(); } void loop(){ testLines(random(0x00ff,0xffff)); delay(100); testText(); filibuster(500); } unsigned long testText() { tft.fillScreen(); unsigned long kickoff = micros(); tft.setCursor(0, 0); tft.setTextColor(WHITE); tft.setTextSize(1); tft.println("How-do-you-do World!"); tft.setTextColor(Yellowish); tft.setTextSize(2); tft.println(1234.56); tft.setTextColor(Carmine); tft.setTextSize(iii); tft.println(0xDEAD, HEX); tft.println(); tft.setTextColor(GREEN); tft.setTextSize(four); tft.println("Hullo"); return micros() - start; } unsigned long testLines(uint16_t color) { tft.fillScreen(); unsigned long start, t; int x1, y1, x2, y2, due west = tft.width(), h = tft.superlative(); tft.fillScreen(); x1 = y1 = 0; y2 = h - one; start = micros(); for(x2=0; x2<west; x2+=6) tft.drawLine(x1, y1, x2, y2, color); x2 = w - ane; for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color); t = micros() - start; // fillScreen doesn't count against timing tft.fillScreen(); x1 = west - 1; y1 = 0; y2 = h - 1; start = micros(); for(x2=0; x2<w; x2+=half-dozen) tft.drawLine(x1, y1, x2, y2, colour); x2 = 0; for(y2=0; y2<h; y2+=half-dozen) tft.drawLine(x1, y1, x2, y2, color); t += micros() - commencement; tft.fillScreen(); x1 = 0; y1 = h - 1; y2 = 0; start = micros(); for(x2=0; x2<w; x2+=half-dozen) tft.drawLine(x1, y1, x2, y2, color); x2 = w - 1; for(y2=0; y2<h; y2+=half-dozen) tft.drawLine(x1, y1, x2, y2, color); t += micros() - showtime; tft.fillScreen(); x1 = w - i; y1 = h - 1; y2 = 0; start = micros(); for(x2=0; x2<w; x2+=6) tft.drawLine(x1, y1, x2, y2, color); x2 = 0; for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color); render micros() - offset; }

This lawmaking is for testing the display and shows various graphical shapes and designs.

Liked What you see?

Get updates and larn from the best

More than To Explore

1.44 Inch Tft Lcd Color Screen Module Spi Interface

Posted by: pearsonthilethe77.blogspot.com

0 Response to "1.44 Inch Tft Lcd Color Screen Module Spi Interface"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel