Blinky with PlatformIO VS Code on ESP32-S3

Updated on 13 October 2022
dev board ESP32-S3-DevKitC-1
chip ESP32-S3-WROOM-1-N8R2
features blinky led serial esp32s3 platformio
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 src/main.cpp
#include <Arduino.h>

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

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

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

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

Prototype

A photo of the actual setup.

Blinky with PlatformIO VS Code on ESP32-S3 prototype

Serial console

Serial output from the firmware.

Blinky with PlatformIO VS Code on ESP32-S3 serial console

Description

  1. Create new project with PlatformIO on VS Code editor
  2. Edit file src/main.cpp with blinky Arduino code
  3. Edit platform.ini to other configurations
  4. Click Build ✅ to compile the code
  5. Click Upload ➡️ to flash the firmware on the board
  6. Click Serial monitor 🔌 to view the serial prints

References