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 name | hardware id | features |
---|---|---|
A0 | GPIO18 | analogOut, io |
A1 | GPIO17 | analogOut, io |
A2 | GPIO16 | io |
A3 | GPIO15 | io |
A4_D24 | GPIO14 | io |
A5_D25 | GPIO8 | analogIn, io |
D10 | GPIO10 | analogIn, io |
D11 | GPIO11 | io |
D12 | GPIO12 | io |
D13 | GPIO13 | io |
D5 | GPIO5 | analogIn, io |
D6 | GPIO6 | analogIn, io |
D9 | GPIO9 | analogIn, io |
LED_PWR | GPIO21 | io |
MISO | GPIO37 | io |
MOSI | GPIO35 | io |
PWR | GPIO7 | analogIn, io |
RX_D0 | GPIO38 | io |
SCK | GPIO36 | io |
SCL | GPIO4 | i2c.pinSCL, analogIn, io |
SDA | GPIO3 | i2c.pinSDA, analogIn, io |
TX_D1 | GPIO39 | debug, io |
led.pin | GPIO33 | led.pin, io |
log.pinTX | GPIO43 | log.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
}
}