circuitpython-org/_board/seeeduino_xiao_rp2040.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.8 KiB

layout board_id title name manufacturer board_url board_image date_added family features
download seeeduino_xiao_rp2040 Seeed Studio XIAO RP2040 Download Seeed Studio XIAO RP2040 Seeed Studio
https://www.seeedstudio.com/XIAO-RP2040-v1-0-p-5026.html
seeeduino_xiao_rp2040.jpg 2022-01-04 raspberrypi
Breadboard-Friendly
Xiao / QTPy Form Factor
USB-C

Seeed Studio XIAO RP2040 is a microcontroller using the Raspberry RP2040 chip. It runs at up to 133 MHz, is built with rich interfaces in a tiny thumb size, and fully supports Arduino, MicroPython, and CircuitPython.

The XIAO RP2040 is a development board of the Seeed Studio XIAO series. Like the Seeed Studio XIAO SAMD21, it is a compact board with a wide range of interfaces. The XIAO RP2040 is equipped with the Raspberry RP2040 chip (Dual-core ARM® Cortex® M0+) and has 2 MB of Flash on board.

Interfaces:

  • 11 digital pins
  • 4 analog pins
  • 11 PWM Pins
  • 1 I2C interface
  • 1 UART interface
  • 1 SPI interface
  • 1 SWD Bonding pad interface

Some PINs have various functions, Moreover, XIAO RP2040 supports the USB-C interface which can supply power and download code. 1 Reset button, 1 BOOT button, 1 user-programmable RGB LED, 1 power LED, 2 status indicators, and 1 user LED are on board, allowing developers to debug their code very easily.

The XIAO RP2040 is very compact because all electronic components are soldered on the same board surface, which means you can easily solder the XIAO RP2040 to your own PCB. XIAO RP2040 is pin-compatible with Seeed Studio XIAO SAMD21, so XIAO RP2040 can be learned and developed using the Expansion board of Seeeduino XIAO.

Tutorial

Purchase