circuitpython-org/_board/pimoroni_tiny2040.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 features
download pimoroni_tiny2040 Tiny 2040 (8MB) Download Tiny 2040 (8MB) Pimoroni
https://shop.pimoroni.com/products/tiny-2040
pimoroni_tiny2040.jpg 2021-02-24 raspberrypi
USB-C
Breadboard-Friendly

A postage stamp sized RP2040 development board with a USB-C connection, perfect for portable projects, wearables, and embedding into devices. Tiny 2040 comes with 8MB of QSPI (XiP) flash on board so it can handle projects small and large with ease.

Features

  • Powered by RP2040
  • ARM Cortex M0+ running at up to 133Mhz
  • 264kB of SRAM
  • USB-C connector for power, programming, and data transfer
  • 8MB of QSPI flash supporting XiP
  • User controllable RGB LED
  • Twelve IO pins (including four 12-bit ADC channels)
  • Switch for basic input (doubles up as DFU select on boot)
  • On-board 3V3 regulator (max regulator current output 300mA)
  • Input voltage range 3V - 5.5V

About the RP2040

The RP2040 microcontroller is a dual core ARM Cortex M0+ running at up to 133Mhz. It bundles in 264kB of SRAM, 30 multifunction GPIO pins (including a four channel 12-bit ADC), a heap of standard peripherals (I2C, SPI, UART, PWM, clocks, etc), and USB support.

One very exciting feature of the RP2040 microcontroller are the programmable IOs which allow you to execute custom programs that can manipulate GPIO pins and transfer data between peripherals - they can offload tasks that require high data transfer rates or precise timing that traditionally would have required a lot of heavy lifting from the CPU.

Purchase