The LilyGo T-Display RP2040 is a versatile development board designed by Xinyuan-LilyGO. It features the RP2040 microcontroller and an integrated 1.14-inch color display, making it an excellent choice for IoT and embedded projects. This board combines the power of the RP2040 with a vibrant display, enabling developers to create visually appealing and interactive applications.
Specification | Value |
---|---|
Microcontroller | RP2040 |
Flash Memory | 4MB |
Display | 1.14-inch color TFT LCD |
Resolution | 240 x 135 pixels |
Operating Voltage | 3.3V |
Input Voltage | 5V (via USB-C) |
GPIO Pins | 26 |
Communication Protocols | I2C, SPI, UART |
Dimensions | 51mm x 25mm |
Pin Number | Pin Name | Description |
---|---|---|
1 | 3V3 | 3.3V Power Supply |
2 | GND | Ground |
3 | GP0 | General Purpose I/O |
4 | GP1 | General Purpose I/O |
5 | GP2 | General Purpose I/O |
6 | GP3 | General Purpose I/O |
7 | GP4 | General Purpose I/O |
8 | GP5 | General Purpose I/O |
9 | GP6 | General Purpose I/O |
10 | GP7 | General Purpose I/O |
11 | GP8 | General Purpose I/O |
12 | GP9 | General Purpose I/O |
13 | GP10 | General Purpose I/O |
14 | GP11 | General Purpose I/O |
15 | GP12 | General Purpose I/O |
16 | GP13 | General Purpose I/O |
17 | GP14 | General Purpose I/O |
18 | GP15 | General Purpose I/O |
19 | GP16 | General Purpose I/O |
20 | GP17 | General Purpose I/O |
21 | GP18 | General Purpose I/O |
22 | GP19 | General Purpose I/O |
23 | GP20 | General Purpose I/O |
24 | GP21 | General Purpose I/O |
25 | GP22 | General Purpose I/O |
26 | GP23 | General Purpose I/O |
Powering the Board:
Connecting to GPIO Pins:
Programming the Board:
#include <TFT_eSPI.h> // Include the graphics library
TFT_eSPI tft = TFT_eSPI(); // Create an instance of the display
void setup() {
tft.init(); // Initialize the display
tft.setRotation(1); // Set display orientation
tft.fillScreen(TFT_BLACK); // Clear the display
tft.setTextColor(TFT_WHITE); // Set text color
tft.setTextSize(2); // Set text size
tft.setCursor(10, 10); // Set cursor position
tft.println("Hello, World!"); // Print text to the display
}
void loop() {
// Add your main code here
}
Display Not Working:
Board Not Recognized by Computer:
GPIO Pins Not Responding:
By following this documentation, you should be able to effectively utilize the LilyGo T-Display RP2040 in your projects. Whether you are a beginner or an experienced developer, this versatile board offers a wide range of possibilities for your IoT and embedded applications.