Skip to main content

Adafruit Feather ESP32-S2

A S2 Feather from Adafruit. (untested)

Features

  • I2C on SDA/SCL using Qwiic connector
  • WS2812B RGB LED on pin 33 (use setStatusLight to control)
  • Serial logging on pin 43 at 115200 8N1

Stores

Pins

pin namehardware idfeatures
A0GPIO18analogOut, io
A1GPIO17analogOut, io
A2GPIO16io
A3GPIO15io
A4_D24GPIO14io
A5_D25GPIO8analogIn, io
D10GPIO10analogIn, io
D11GPIO11io
D12GPIO12io
D13GPIO13io
D5GPIO5analogIn, io
D6GPIO6analogIn, io
D9GPIO9analogIn, io
LED_PWRGPIO21io
MISOGPIO37io
MOSIGPIO35io
PWRGPIO7analogIn, io
RX_D0GPIO38io
SCKGPIO36io
SCLGPIO4i2c.pinSCL, analogIn, io
SDAGPIO3i2c.pinSDA, analogIn, io
TX_D1GPIO39debug, io
led.pinGPIO33led.pin, io
log.pinTXGPIO43log.pinTX, 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 "Adafruit Feather ESP32-S2".

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

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 adafruit_feather_esp32_s2

Configuration

adafruit_feather_esp32_s2.json
{
"$schema": "https://raw.githubusercontent.com/microsoft/devicescript-esp32/main/boards/esp32deviceconfig.schema.json",
"id": "adafruit_feather_esp32_s2",
"devName": "Adafruit Feather ESP32-S2",
"productId": "0x3c2ed99e",
"$description": "A S2 Feather from Adafruit. (untested)",
"archId": "esp32s2",
"url": "https://www.adafruit.com/product/5000",
"i2c": {
"$connector": "Qwiic",
"pinSCL": "SCL",
"pinSDA": "SDA"
},
"led": {
"pin": 33,
"type": 1
},
"log": {
"pinTX": 43
},
"pins": {
"A0": 18,
"A1": 17,
"A2": 16,
"A3": 15,
"A4_D24": 14,
"A5_D25": 8,
"D10": 10,
"D11": 11,
"D12": 12,
"D13": 13,
"D5": 5,
"D6": 6,
"D9": 9,
"LED_PWR": 21,
"MISO": 37,
"MOSI": 35,
"PWR": 7,
"RX_D0": 38,
"SCK": 36,
"SCL": 4,
"SDA": 3,
"TX_D1": 39
},
"sPin": {
"LED_PWR": 1,
"PWR": 1
}
}