0.96-Inch Color Screen
Module Source
Purchase Link: https://item.taobao.com/item.htm?id=563017284569&_u=n1q56pn38e09
Baidu Netdisk Download Link:
https://pan.baidu.com/s/19DxY8JJEzNt4XYF_CwVbDw
Password: 8888
Specifications
Operating Voltage: 2.8~3.3V
Operating Current: 30MA
Module Dimensions: 24(H) x 30(V)MM
Pixel Resolution: 80(H) x 160(V) RGB
Driver Chip: ST7735
Communication Protocol: SPI
Pin Count: 8 Pin (2.54mm pitch header)
The details are from the manufacturer’s documentation.
Hardware Connection
The TFT color display typically connects to the development board via SPI communication. The basic SPI wiring is as follows (actual pins may need adjustment based on your display’s datasheet):
- TFT VCC -> Development board 5V
- TFT GND -> Development board GND
- TFT SCL -> Development board SCK (Pin 13)
- TFT SDA -> Development board MOSI (Pin 11)
- TFT RES -> Development board Digital Pin 9
- TFT DC -> Development board Digital Pin 8
- TFT CS -> Development board Digital Pin 10
- TFT BLK -> Arduino 3.3V
Usage Method
Installing Library Files (skip this step if already installed)
- Open the Arduino IDE.
- Go to “Tools” > “Manage Libraries…”.
- Search for “Adafruit ST7789” and “Adafruit GFX”, and install each library individually.
Enter the code:
Here is a simple example code that demonstrates how to initialize the screen and display text on it:
/******************************************************************************
* Test Hardware: LCSC ColorEasyDuino Development Board
* Version Number: V1.0
* Modified By: www.lckfb.com
* Modification Date: March 26, 2024
* Function Overview:
*****************************************************************************
* Open-source development board hardware and software information and related projects hardware and software information on official website
* Development board official website: www.lckfb.com
* Technical support resident forum, any technical problems are welcome at any time to exchange learning
* LCSC Forum: club.szlcsc.com
* Follow our Bilibili account: [立创开发板], stay toned to our latest news!
* We focus on cultivating Chinese engineers rather than profiting from board sales.
******************************************************************************/
#include <Adafruit_GFX.h> // Include Adafruit GFX library
#include <Adafruit_ST7735.h> // Include Adafruit ST7735 library
// Define connected pins
#define TFT_CS 10
#define TFT_RST 9 // Set to -1 if not using reset pin
#define TFT_DC 8
// Initialize Adafruit_ST7735 object
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
void setup() {
// Choose the correct initialization command for your display model
tft.initR(INITR_MINI160x80_PLUGIN); // 160x80 resolution
tft.setRotation(1); // Set rotation
tft.fillScreen(ST7735_BLACK); // Clear screen to black
tft.setTextSize(2); // Set text size
tft.setTextColor(ST77XX_RED); // Set text color
tft.setCursor(5, 5); // Set text display coordinates
tft.print("Hello, LCKFB"); // Set displayed text
}
void loop() {
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40