Skip to content

Commit

Permalink
add adafruit feather s2
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Apr 11, 2023
1 parent 9d2d7e6 commit 4b9c909
Show file tree
Hide file tree
Showing 4 changed files with 216 additions and 1 deletion.
50 changes: 50 additions & 0 deletions compiler/src/boards.json
Expand Up @@ -90,6 +90,56 @@
}
},
"boards": {
"adafruit_feather_esp32_s2": {
"$description": "A S2 Feather from Adafruit. (untested)",
"$fwUrl": "https://github.com/microsoft/jacdac-esp32/releases/latest/download/devicescript-esp32s2-adafruit_feather_esp32_s2-0x1000.bin",
"$schema": "https://raw.githubusercontent.com/microsoft/jacdac-esp32/main/boards/esp32deviceconfig.schema.json",
"archId": "esp32s2",
"devName": "Adafruit Feather ESP32-S2",
"i2c": {
"$connector": "Qwiic",
"pinSCL": 4,
"pinSDA": 3
},
"id": "adafruit_feather_esp32_s2",
"led": {
"pin": 33,
"type": 1
},
"pins": {
"A0": 18,
"A1": 17,
"A2": 16,
"A3": 15,
"A4": 14,
"A5": 8,
"D10": 10,
"D11": 11,
"D12": 12,
"D13": 13,
"D5": 5,
"D6": 6,
"D9": 9,
"MISO": 37,
"MOSI": 35,
"RX": 38,
"SCK": 36,
"TX": 39
},
"productId": "0x3c2ed99e",
"setupPins": [
{
"out": 1,
"pin": 21
},
{
"out": 1,
"pin": 7
}
],
"uartLog": true,
"url": "https://www.adafruit.com/product/5000"
},
"adafruit_qt_py_c3": {
"$description": "A tiny ESP32-C3 board.",
"$fwUrl": "https://github.com/microsoft/jacdac-esp32/releases/latest/download/devicescript-esp32c3-adafruit_qt_py_c3-0x0.bin",
Expand Down
2 changes: 1 addition & 1 deletion jacdac-ts
Submodule jacdac-ts updated 1 files
+1 −1 jacdac-spec
50 changes: 50 additions & 0 deletions website/docs/devices/boards.json
@@ -1,4 +1,54 @@
{
"adafruit_feather_esp32_s2": {
"$description": "A S2 Feather from Adafruit. (untested)",
"$fwUrl": "https://github.com/microsoft/jacdac-esp32/releases/latest/download/devicescript-esp32s2-adafruit_feather_esp32_s2-0x1000.bin",
"$schema": "https://raw.githubusercontent.com/microsoft/jacdac-esp32/main/boards/esp32deviceconfig.schema.json",
"archId": "esp32s2",
"devName": "Adafruit Feather ESP32-S2",
"i2c": {
"$connector": "Qwiic",
"pinSCL": 4,
"pinSDA": 3
},
"id": "adafruit_feather_esp32_s2",
"led": {
"pin": 33,
"type": 1
},
"pins": {
"A0": 18,
"A1": 17,
"A2": 16,
"A3": 15,
"A4": 14,
"A5": 8,
"D10": 10,
"D11": 11,
"D12": 12,
"D13": 13,
"D5": 5,
"D6": 6,
"D9": 9,
"MISO": 37,
"MOSI": 35,
"RX": 38,
"SCK": 36,
"TX": 39
},
"productId": "0x3c2ed99e",
"setupPins": [
{
"out": 1,
"pin": 21
},
{
"out": 1,
"pin": 7
}
],
"uartLog": true,
"url": "https://www.adafruit.com/product/5000"
},
"adafruit_qt_py_c3": {
"$description": "A tiny ESP32-C3 board.",
"$fwUrl": "https://github.com/microsoft/jacdac-esp32/releases/latest/download/devicescript-esp32c3-adafruit_qt_py_c3-0x0.bin",
Expand Down
115 changes: 115 additions & 0 deletions website/docs/devices/esp32/adafruit-feather-esp32-s2.mdx
@@ -0,0 +1,115 @@
---
description: Adafruit Feather ESP32-S2
---
# Adafruit Feather ESP32-S2


A S2 Feather from Adafruit. (untested)


## Features

- I2C on SDA/SCL: 3/4 using Qwiic connector
- WS2812B RGB LED on 33

## Stores

- [https://www.adafruit.com/product/5000](https://www.adafruit.com/product/5000)

## Pins

| pin name | hardware id | features |
|:---------|:------------|---------:|
| **A0** | GPIO18 | analogOut, io |
| **A1** | GPIO17 | analogOut, io |
| **A2** | GPIO16 | io |
| **A3** | GPIO15 | io |
| **A4** | GPIO14 | io |
| **A5** | 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 |
| **MISO** | GPIO37 | io |
| **MOSI** | GPIO35 | io |
| **RX** | GPIO38 | io |
| **SCK** | GPIO36 | io |
| **TX** | GPIO39 | debug, io |
| **i2c.pinSCL** | GPIO4 | analogIn, io |
| **i2c.pinSDA** | GPIO3 | analogIn, io |
| **led.pin** | GPIO33 | io |
| **setupPins[0].pin** | GPIO21 | io |
| **setupPins[1].pin** | GPIO7 | analogIn, io |



## Firmware update

In [Visual Studio Code](/getting-started/vscode),
select **DeviceScript: Flash Firmware...** from the command palette.

Run this [command line](/api/cli) command and follow the instructions.

```bash
devicescript flash --board adafruit_feather_esp32_s2
```


- [Firmware](https://github.com/microsoft/jacdac-esp32/releases/latest/download/devicescript-esp32s2-adafruit_feather_esp32_s2-0x1000.bin)

## Configuration

```json title="adafruit_feather_esp32_s2.json"
{
"$schema": "https://raw.githubusercontent.com/microsoft/jacdac-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": 4,
"pinSDA": 3
},
"led": {
"pin": 33,
"type": 1
},
"pins": {
"A0": 18,
"A1": 17,
"A2": 16,
"A3": 15,
"A4": 14,
"A5": 8,
"D10": 10,
"D11": 11,
"D12": 12,
"D13": 13,
"D5": 5,
"D6": 6,
"D9": 9,
"MISO": 37,
"MOSI": 35,
"RX": 38,
"SCK": 36,
"TX": 39
},
"setupPins": [
{
"out": 1,
"pin": 21
},
{
"out": 1,
"pin": 7
}
],
"uartLog": true
}
```

0 comments on commit 4b9c909

Please sign in to comment.