circuitpython-org/_board/adafruit_metro_esp32s2.md
Jeff Epler 4715875cc4 Fix board dates to always be of the form YYYY-MM-DD
.. leading zeros are required for `frontmatter` to treat them as dates
rather than strings, apparently per the YAML specification.

This was done by script:
```py
import re
import datetime
import pathlib
import sys

import frontmatter

rx = re.compile(r'^(\s*)date_added:.*$', re.M)

for path_str in sys.argv[1:]:
    print(path_str)
    path = pathlib.Path(path_str)

    post = frontmatter.load(path)
    date_added = post.get("date_added", "")

    if isinstance(date_added, datetime.date):
        continue

    if isinstance(date_added, str):
        try:
            date_added = datetime.datetime.strptime(date_added, "%Y-%m-%d")
        except ValueError as exc:
            print(f"Failed to parse date {date_added} in {path_str}: {exc}")
            continue

    date_added = date_added.date()
    content = path.read_text("utf-8")
    new_content = rx.sub(lambda m: f"{m.group(1)}date_added: {date_added}", content)
    assert content != new_content

    path.write_text(new_content, "utf-8")
```
2024-03-22 11:31:45 -05:00

1.7 KiB

layout board_id title name manufacturer board_url board_image date_added family bootloader_id features
download adafruit_metro_esp32s2 Metro ESP32-S2 Download Metro ESP32-S2 Adafruit
https://www.adafruit.com/product/4775
adafruit_metro_esp32s2.jpg 2020-10-02 esp32s2 adafruit_metro_esp32s2
Wi-Fi
Battery Charging
STEMMA QT/QWIIC
USB-C
Arduino Shield Compatible

What's Metro shaped and has an ESP32-S2 WiFi module? What has a STEMMA QT connector for I2C devices, and a Lipoly charger circuit? What's finishing up testing and nearly ready for fabrication? That's right - its the new Adafruit Metro ESP32-S2! With native USB and a load of PSRAM this board is perfect for use with CircuitPython or Arduino, to add low-cost WiFi while keeping shield-compatibility.

Technical details

  • ESP32-S2 240 MHz Tensilica processor - the next generation of ESP32, now with native USB so it can act like a keyboard/mouse, MIDI device, disk drive, etc!
  • WROVER module has FCC/CE certification and comes with 4 MB of Flash and 2 MB of PSRAM - you can have huge data buffers
  • Lotsa power options - 6-12 VDC barrel jack or USB-C or Lipoly battery
  • Built in battery charging when powered over DC or USB
  • UNO-shape so shields can plug in
  • Reset and DFU (BOOT0) buttons to get into the ROM bootloader (which is a USB serial port so you don't need a separate cable!)
  • Serial debug pins (optional, for checking the hardware serial debug console)
  • JTAG pads for advanced debugging access.
  • On/Off switch
  • STEMMA QT connector for I2C devices
  • On/Charge/User LEDs + status NeoPixel
  • Works with Arduino or CircuitPython

Purchase: