Skip to main content

Espressif ESP32-S2 (bare)

A bare ESP32-S2 board without any pin functions.

Features

  • Serial logging on pin P43 at 115200 8N1

caution

I2C pins are not configured.

Stores

Pins

pin namehardware idfeatures
P0GPIO0boot, io
P1GPIO1analogIn, io
P10GPIO10analogIn, io
P11GPIO11io
P12GPIO12io
P13GPIO13io
P14GPIO14io
P15GPIO15io
P16GPIO16io
P17GPIO17analogOut, io
P18GPIO18analogOut, io
P2GPIO2analogIn, io
P21GPIO21io
P3GPIO3analogIn, io
P33GPIO33io
P34GPIO34io
P35GPIO35io
P36GPIO36io
P37GPIO37io
P38GPIO38io
P39GPIO39debug, io
P4GPIO4analogIn, io
P40GPIO40debug, io
P41GPIO41debug, io
P42GPIO42debug, io
P43GPIO43log.pinTX, io
P44GPIO44io
P45GPIO45boot, io
P46GPIO46boot, input
P5GPIO5analogIn, io
P6GPIO6analogIn, io
P7GPIO7analogIn, io
P8GPIO8analogIn, io
P9GPIO9analogIn, io

DeviceScript import

You must add this import statement to load the pinout configuration for this device.

In Visual Studio Code, click the wand icon on the file menu and select "Espressif ESP32-S2 (bare)".

import { pins, board } from "@dsboard/esp32s2_bare"

Firmware update

In Visual Studio Code, select DeviceScript: Flash Firmware... from the command palette.

Run this command line command and follow the instructions.

devicescript flash --board esp32s2_bare

Configuration

esp32s2_bare.json
{
"$schema": "https://raw.githubusercontent.com/microsoft/devicescript-esp32/main/boards/esp32deviceconfig.schema.json",
"id": "esp32s2_bare",
"devName": "Espressif ESP32-S2 (bare)",
"productId": "0x3f140dcc",
"$description": "A bare ESP32-S2 board without any pin functions.",
"archId": "esp32s2",
"url": "https://www.espressif.com/en/products/socs/esp32-s2",
"log": {
"pinTX": "P43"
},
"pins": {
"P0": 0,
"P1": 1,
"P10": 10,
"P11": 11,
"P12": 12,
"P13": 13,
"P14": 14,
"P15": 15,
"P16": 16,
"P17": 17,
"P18": 18,
"P2": 2,
"P21": 21,
"P3": 3,
"P33": 33,
"P34": 34,
"P35": 35,
"P36": 36,
"P37": 37,
"P38": 38,
"P39": 39,
"P4": 4,
"P40": 40,
"P41": 41,
"P42": 42,
"P43": 43,
"P44": 44,
"P45": 45,
"P46": 46,
"P5": 5,
"P6": 6,
"P7": 7,
"P8": 8,
"P9": 9
}
}