Blinky for ESP32 LilyGO T-Beam

Updated on 12 April 2022
dev board LilyGO T-Beam
chip ESP32-DOWDQ6
This tutorial is more than 1 year old. If the steps below do not work, then please check the latest versions and the documentations of the individual tools used.

Before starting

Dependancies

Ensure the following dependancies are downloaded and available:

Buy the components

Code

Download code blinky-esp32-t-beam.ino
#define LED 4

void setup() {
  pinMode(LED, OUTPUT);
  digitalWrite(LED, LOW);

  Serial.begin(115200);
  Serial.println("Start blinky");
}

void loop() {
  Serial.println("LED ON");
  digitalWrite(LED, LOW);
  delay(1000);

  Serial.println("LED OFF");
  digitalWrite(LED, HIGH);
  delay(1000);
}

Makefile

BOARD?=esp32:esp32:t-beam
PORT?=/dev/cu.SLAB_USBtoUART

.PHONY: default lint all flash clean

default: all flash clean

lint:
	cpplint --extensions=ino --filter=-legal/copyright *.ino

all:
	arduino-cli compile --fqbn $(BOARD) ./

flash:
	arduino-cli upload -p $(PORT) --fqbn $(BOARD)

clean:
	rm -r build

Prototype

A photo of the actual setup.

Blinky for ESP32 LilyGO T-Beam prototype

Serial console

Serial output from the firmware.

Blinky for ESP32 LilyGO T-Beam serial console

Description

This example contains a simple blinky program for the ESP32-based T-Beam by Xinyuan LilyGO version T22_V1.1, 20191212.

  1. Setup arduino-cli or Arduino IDE with boards URL for ESP32

     https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
    
  2. Install SiLabs CP210x USB to UART Bridge VCP Drivers for macOS
  3. Flash the blinky firmware with the make command.
  4. The RED LED underneath the display should blink.

References