
TTGO LoRa32-OLED is a development board based on the ESP32 microcontroller using XTENSA architecture.
This board features a maximum CPU frequency of 240 MHz and 4MB flash memory.
About TTGO LoRa32-OLED
ESP32 board with built-in OLED and LoRa - perfect for long-range wireless projects with a visual interface.
Where to Buy TTGO LoRa32-OLED
Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.
Technical Specifications
Complete technical specification details for TTGO LoRa32-OLED
Display
USB
Connectivity
Microcontroller
✨ Features & Pins
- • OLED Screen
Quick Setup
Copy-paste configs for TTGO LoRa32-OLED - auto‑generated from this board's exact hardware specs.
In Arduino IDE 2 select Ttgo Lora32 from the esp32 by Espressif package. In PlatformIO use board = esp32dev. ESP32 · 240 MHz · 4MB · DIO.
In Arduino IDE 2, open Boards Manager, search "esp32" by Espressif and install it. Then go to Tools → Board and select "Ttgo Lora32" for the TTGO LoRa32-OLED.
[env:ttgo-lora32]
platform = espressif32
board = esp32dev
framework = arduino
; Exact hardware config for TTGO LoRa32-OLED
board_build.mcu = esp32
board_build.f_cpu = 240000000L
board_build.flash_size = 4MB
board_build.flash_mode = dio
board_upload.flash_size = 4MBThe board value is a close generic match - check PlatformIO board registry for an exact fit.
esp32:
board: esp32dev
framework:
type: arduino # or "esp-idf"
# TTGO LoRa32-OLED - 240 MHz ESP32
# Flash: 4MB | USB: Micro-USBPaste into your device's .yaml. See ESPHome ESP32 docs for full options.
esptool.py \
--chip esp32 \
--baud 921600 \
write_flash \
--flash_mode dio \
--flash_size 4MB \
0x1000 bootloader.bin \
0x8000 partitions.bin \
0xe000 boot_app0.bin \
0x10000 firmware.binInstall: pip install esptool - replace firmware.bin with your binary - bootloader at 0x1000
TTGO LoRa32-OLED Pinout Diagram
Complete pin reference for TTGO LoRa32-OLED
Safe Pins to Use
These pins are safe for general GPIO usage without boot or system conflicts
Why Are These Pins Safe?
Pins to Avoid or Use with Caution
Reserved for critical functions. Misuse may cause boot failures, programming issues, or system conflicts.
Boot behavior & flash voltage
Low-level debugging interface
USB Serial/JTAG communication
Memory & PSRAM connections
Debugging & firmware uploads
| PIN | Label | Why Avoid | Type |
|---|
Useful Links
Datasheets and resources for TTGO LoRa32-OLED
TTGO LoRa32-OLED Custom Pin Mapping
Pin configuration and GPIO mapping for TTGO LoRa32-OLED
| Pin | Function | ESP Pin | I/O Type | Description |
|---|---|---|---|---|
| 1 | OLED RST | GPIO16 | output | OLED Reset (V1.0 only) |
| 2 | OLED SDA | GPIO4 | bidirectional | I2C Data Line (V1.0 only) |
| 3 | OLED SDA | GPIO21 | bidirectional | I2C Data Line (V1.2+ only) |
| 4 | OLED SCL | GPIO15 | bidirectional | I2C Clock Line (V1.0 only) |
| 5 | OLED SCL | GPIO22 | bidirectional | I2C Clock Line (V1.2+ only) |
| 6 | SDCard CS | GPIO13 | output | SPI Chip Select (V1.6+) |
| 7 | SDCard MOSI | GPIO15 | bidirectional | SPI Master Out Slave In (V1.6+) |
| 8 | SDCard MISO | GPIO2 | bidirectional | SPI Master In Slave Out (V1.6+) |
| 9 | SDCard SCLK | GPIO14 | bidirectional | SPI Clock Line (V1.6+) |
| 10 | DS3231 SDA | GPIO21 | bidirectional | I2C Data Line (V1.2 T-Fox only) |
| 11 | DS3231 SCL | GPIO22 | bidirectional | I2C Clock Line (V1.2 T-Fox only) |
| 12 | LORA MOSI | GPIO27 | bidirectional | SPI Master Out Slave In |
| 13 | LORA MISO | GPIO19 | bidirectional | SPI Master In Slave Out |
| 14 | LORA SCLK | GPIO5 | bidirectional | SPI Clock Line |
| 15 | LORA CS | GPIO18 | output | SPI Chip Select |
| 16 | LORA RST | GPIO14 | output | LoRa Reset (V1.0 only) |
| 17 | LORA RST | GPIO23 | output | LoRa Reset (V1.2+ only) |
| 18 | LORA DIO0 | GPIO26 | input | LoRa Interrupt Pin |
Default Tools & Configuration
Build and upload settings for TTGO LoRa32-OLED
| Setting | Value |
|---|---|
| Bootloader tool | esptool_py |
| Uploader tool | esptool_py |
| Network uploader tool | esp_ota |
| Bootloader address | 0x1000 |
| Flash mode | dio |
| Boot mode | dio |
| Maximum upload size | 1280 KB (1310720 bytes) |
| Maximum data size | 288 KB (294912 bytes) |
The TTGO LoRa32-OLED uses esptool_py for uploads , esp_ota for OTA updates, and esptool_py bootloader at 0x1000.
Flash mode: dio | Boot mode: dio
Max sketch size: 1280 KB | Max data size: 288 KB
Similar Boards
Other development boards with ESP32 microcontroller

LilyGo T4-S3
LilyGo T4-S3 development board is based on esp32s3 microcontroller and uses xtensa architecture.

LilyGo T-Eth Lite
LilyGo T-Eth Lite development board is based on esp32 microcontroller and uses xtensa architecture.

LilyGo T-Deck
LilyGo T-Deck development board is based on esp32s3 microcontroller and uses xtensa architecture.

