中文 | EN
- Install
TFT_eSPI
from the Arduino library installation manager - Copy the
Buttons
in theLilyGo_Txx/lib
directory to the<C:\Users\UserName\Documents\Arduino\libraries>
directory - Enter
<C:\Users\UserName\Documents\Arduino\libraries\TFT_eSPI>
to change the configuration file. For different types of boards, you need to enable the correspondingTFT_eSPI
setting (select the corresponding pin of the LCD screen).
- Open
User_Setup_Select.h
in theTFT_eSPI
directory and disable it by#include <User_Setup.h>
. - Uncomment the
#include <User_Setups/Setup22_TTGO_T4_v1.3.h>
line
- Open
User_Setup_Select.h
in theTFT_eSPI
directory and disable it by#include <User_Setup.h>
. - Uncomment the
#include <User_Setups/Setup22_TTGO_T4.h>
line
- Copy
User_Setups/T10_V20_1C4.h
in theLilyGo_Txx
folder to theTFT_eSPI\User_Setups
directory - Open
User_Setup_Select.h
in theTFT_eSPI
directory, disable#include <User_Setup.h>
, add#include <User_Setups/T10_V20_1C4.h' below the line
#include <User_Setup.h>>
- Copy
User_Setups/T10_V20_1C8.h
in theLilyGo_Txx
folder to theTFT_eSPI\User_Setups
directory - Open
User_Setup_Select.h
in theTFT_eSPI
directory, disable#include <User_Setup.h>
, add#include <User_Setups/T10_V20_1C8.h below the line
#include <User_Setup.h>>
-
Open
LilyGo_Txx/LilyGo_Txx.ino
, above the sketch, uncomment the corresponding board, it looks as follows// #define T4_ V12 //Historical version // #define T4_ V13 //Version for sale // #define T10_ V14 //Historical version // #define T10_ V18 //Version for sale TS V1.8 // #define T10_ V20 //Version for sale TS V2.0
-
Select the board according to the following options
-
Click the right arrow above
Arduino IDE
to compile and upload (please make sure to install the serial driver and connect the board to the computer via USB)
Name | V18/V20 |
---|---|
TFT Driver | ST7735 |
TFT_MISO | N/A |
TFT_MOSI | 23 |
TFT_SCLK | 5 |
TFT_CS | 16 |
TFT_DC | 17 |
TFT_RST | N/A |
TFT_BL | 27 |
SD_MISO | 2 |
SD_MOSI | 15 |
SD_SCLK | 14 |
SD_CS | 13 |
I2C_SDA | 21 |
I2C_SCL | 22 |
SPEAKER_OUT | 25 |
ADC_IN | 35 |
BUTTON1 | 36 |
BUTTON2 | 37 |
BUTTON3 | 39 |
Name | V12 | V13 |
---|---|---|
TFT Driver | ILI9341 | ILI9341 |
TFT_MISO | 12 | 12 |
TFT_MOSI | 23 | 23 |
TFT_SCLK | 18 | 18 |
TFT_CS | 27 | 27 |
TFT_DC | 26 | 32 |
TFT_RST | 5 | 5 |
TFT_BL | N/A | 4 |
SD_MISO | 2 | 2 |
SD_MOSI | 15 | 15 |
SD_SCLK | 14 | 14 |
SD_CS | 13 | 13 |
Button 0 | 14 | 14 |
Button 1 | 5 | 5 |
Button 2 | 27 | 27 |
Button 3 | 25 | 25 |
SPEAKER PWD | N/A | 19 |
SPEAKER OUT | N/A | 25 |
I2C_SDA | 21 | 21 |
I2C_SCL | 22 | 22 |