LilyGo T-Deck image

LilyGo T-Deck

Development Board LILYGO_T_DECK

LilyGo T-Deck is a development board based on the ESP32S3 microcontroller using XTENSA architecture.

This board features a maximum CPU frequency of 240 MHz and 16MB flash memory.

240 MHz CPU 16MB Flash WiFi + BT 5.0 ~$60 per unit

About LilyGo T-Deck

ESP32S3 Xtensa dual-core 32-bit LX7 ยท 240 MHz

๐Ÿš€ The LilyGo T-Deck is a versatile development device featuring an ESP32-S3FN16R8 dual-core processor with integrated Wi-Fi and Bluetooth 5 (LE). It boasts a 2.8-inch IPS LCD (320x240) touch screen, a mini keyboard, and a trackball, making it ideal for portable applications. โšก

๐Ÿ“ก With support for LoRa transceiver (SX1262) at various frequencies (433/868/915 MHz), it enables long-range communication for IoT projects. The device comes with 16MB Flash and 8MB PSRAM, providing ample memory for complex applications.

๐Ÿ’พ Additional features include a microphone, speaker, and optional GPS module, enhancing its functionality for diverse use cases.

Where to Buy LilyGo T-Deck

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specifications

Complete technical specification details for LilyGo T-Deck

ESP32S3 ยท Dual-Core + AI
Arch
XTENSA
Clock
240 MHz
Flash
16MB
PSRAM
8MB
Connectivity
WiFi
802.11 b/g/n (2.4 GHz)
Bluetooth 5.0
Classic + BLE
LoRa
Yes
320x240pixels
Type
IPS LCD
Size
2.8"
Driver
ST7789
48
Digital IO
20
Analog In
27
PWM
46
Interrupts
Full datasheet & reference manual
Download

Quick Setup

Copy-paste configs for LilyGo T-Deck - auto‑generated from this board's exact hardware specs.

ESP32S3 240 MHz 16MB DIO Xtensa

In Arduino IDE 2 select Lilygo T Deck from the esp32 by Espressif package. In PlatformIO use board = esp32-s3-devkitm-1. ESP32S3 · 240 MHz · 16MB · DIO.

Tools menu settings
Board (select in Arduino IDE) Lilygo T Deck
CPU Frequency 240 MHz
Flash Size 16MB
Flash Mode DIO
Upload Speed 921600
Architecture Xtensa

In Arduino IDE 2, open Boards Manager, search "esp32" by Espressif and install it. Then go to Tools โ†’ Board and select "Lilygo T Deck" for the LilyGo T-Deck.

LilyGo T-Deck Pinout Diagram

Complete pin reference for LilyGo T-Deck

LilyGo T-Deck pinout diagram

The LilyGo T-Deck pinout offers multiple GPIOs with various functionalities:

IO1 to IO3: GPIO, Touch, ADC

IO10 to IO13: SPI interface (CS, D, CLK, Q)

IO16: ADC

IO17 and IO18: UART (TX, RX)

IO38 to IO48: LCD data lines and control signals

Additionally, power pins like 3V3, 5V, and GND are available for peripheral connections.

Safe Pins to Use

These pins are safe for general GPIO usage without boot or system conflicts.

IO1 IO2 IO16 IO17 IO18 IO21 IO5 IO6 IO7 IO8 IO15 IO4 IO22 IO23 IO24 IO25 IO26 IO27 IO28 IO29 IO30 IO31 IO32
โœ“ No boot sequence involvement
โœ“ No flash/PSRAM connections
โœ“ No USB or JTAG conflicts
โœ“ Freely assignable without issues

Pins to Avoid or Use with Caution

Reserved for critical functions. Misuse may cause boot failures, programming issues, or system conflicts.

Strapping JTAG USB Flash/SPI UART
PinLabelWhy AvoidType
IO3GPIO3Sampled at reset to select JTAG interface (USB Serial/JTAG controller vs. external pins). Improper use can disable external JTAG or alter debug interface.๐Ÿ› ๏ธ Strapping
IO10FSPICS0Used to select the external flash chip. It is required for flash access and cannot be repurposed without losing flash connectivityโšก Flash
IO11FSPIDUsed as a data line for flash (and in-package PSRAM). It should not be used as GPIO when the flash/PSRAM is in use.โšก Flash
IO12FSPICLKDrives the flash (and PSRAM) clock. This critical signal must be reserved for memory and not used as general GPIO.โšก Flash
IO13FSPIQUsed as a data line for flash/PSRAM transfers. Not available for other uses when flash/PSRAM is connected.โšก Flash

LilyGo T-Deck Custom Pin Mapping

Pin configuration and GPIO mapping for LilyGo T-Deck

48
Digital I/O Pins
46
Interrupt Pins
20
Analog Inputs
27
PWM Pins
PinFunctionESP PinI/O TypeDescription
13V33.3VPOWER OUTPUT3.3V power output
2GNDGNDPOWER GROUNDGround connection
35V5VPOWER INPUT5V power input for the board
4IO1GPIO1BIDIRECTIONALGPIO, Touch, ADC
5IO2GPIO2BIDIRECTIONALGPIO, Touch, ADC
6IO3GPIO3BIDIRECTIONALGPIO, Touch, ADC
7IO10SPI_CSBIDIRECTIONALGPIO, SPI Chip Select
8IO11SPI_DBIDIRECTIONALGPIO, SPI Data
9IO12SPI_CLKBIDIRECTIONALGPIO, SPI Clock
10IO13SPI_QBIDIRECTIONALGPIO, SPI Q
11IO16ADC2_CH5BIDIRECTIONALGPIO, ADC
12IO17U1_TXDBIDIRECTIONALGPIO, UART TX
13IO18U1_RXDBIDIRECTIONALGPIO, UART RX
14IO21GPIO21BIDIRECTIONALGPIO
15IO38LCD_BLOUTPUTGPIO, LCD Backlight
16IO39LCD_D0OUTPUTGPIO, LCD Data 0
17IO40LCD_D1OUTPUTGPIO, LCD Data 1
18IO41LCD_D2OUTPUTGPIO, LCD Data 2
19IO42LCD_D3OUTPUTGPIO, LCD Data 3
20IO45LCD_D4OUTPUTGPIO, LCD Data 4
21IO46LCD_D5OUTPUTGPIO, LCD Data 5
22IO47LCD_D6OUTPUTGPIO, LCD Data 6
23IO48LCD_D7OUTPUTGPIO, LCD Data 7
24IO5LCD_RESOUTPUTGPIO, LCD Reset
25IO6LCD_CSOUTPUTGPIO, LCD Chip Select
26IO7LCD_DCOUTPUTGPIO, LCD Data/Command
27IO8LCD_WROUTPUTGPIO, LCD Write
28IO9LCD_RDOUTPUTGPIO, LCD Read
29IO15LCD_POWER_ONOUTPUTGPIO, LCD Power Enable
30IO4LCD_BAT_VOLTINPUTGPIO, Battery Voltage Sense
31IO14BUTTONINPUTUser Button
32IO20MICINPUTMicrophone Input
33IO22SPEAKEROUTPUTSpeaker Output
34IO23LOADEROUTPUTFlash Loader
35IO24KEYBOARDINPUTKeyboard Input
36IO25TRACKBALLINPUTTrackball Sensor
37IO26GPS_RXINPUTGPS Module RX
38IO27GPS_TXOUTPUTGPS Module TX
39IO28LORA_CSOUTPUTLoRa Chip Select
40IO29LORA_RSTOUTPUTLoRa Reset
41IO30LORA_IRQINPUTLoRa Interrupt Request
42IO31EXPANSIONBIDIRECTIONALExpansion GPIO
43IO32EXTRABIDIRECTIONALExtra GPIO
Legend
Function Pin role
GPIO ESP32 pin
I/O Direction
# Pin number

Pin Mappings

Complete pinout and GPIO mapping for LilyGo T-Deck

48
Digital I/O Pins
46
Interrupt Pins
20
Analog Inputs
27
PWM Pins
PinAnalogTouchPWMOther
0BUTTON_1
1A0T1PWM
2A1T2PWM
3A2T3PWM
4PWMBAT_VOLT
10A9T10PWMSS
11A10T11PWMMOSI
12A11T12PWMSCK
13A12T13PWMMISO
17A16PWMSCL
18A17PWMSDA
43PWMTX
44PWMRX
Legend
A0 Analog input
T0 Touch sensor
PWM PWM capable
RX/TX Serial pins
LED Built-in LED
# Pin number

Default Tools & Configuration

Build and upload settings for LilyGo T-Deck

SettingValue
Bootloader toolesptool_py
Uploader toolesptool_py
Network uploader toolesp_ota
Bootloader address0x0
Flash modedio
Boot modeqio
PSRAM typeopi
Maximum upload size
3072 KB (3145728 bytes)
Maximum data size
320 KB (327680 bytes)
Configuration Summary

The LilyGo T-Deck uses esptool_py for uploads , esp_ota for OTA updates, and esptool_py bootloader at 0x0.

Flash mode: dio | Boot mode: qio | PSRAM: opi

Max sketch size: 3072 KB | Max data size: 320 KB