circuitpython-org/_board/raspberrypi_zero.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

32 lines
1.5 KiB
Markdown

---
layout: download
board_id: "raspberrypi_zero"
title: "Raspberry Pi Zero Download"
name: "Zero"
manufacturer: "Raspberry Pi"
board_url:
- "https://www.raspberrypi.com/products/raspberry-pi-zero/"
- "https://www.adafruit.com/product/2885"
- "https://www.adafruit.com/product/3644"
board_image: "raspberry_pi_zero.jpg"
date_added: 2022-02-14
family: broadcom
features:
---
**NOTE**: This build is alpha quality and is for experimental use. It is [missing features and has known issues](https://github.com/adafruit/circuitpython/labels/broadcom).
At first glance, the Pi Zero isn't much. It just looks like a slimmed down version of the Raspberry Pi we know and love. But when we started to think of the possibilities - and what a well-chosen set of accessories could add - we realized the appeal. And then we saw the price...could it be true? Yes!
This is the slimmest, most pared down Raspberry Pi to date. It's kind of like the little cousin to the Pi 2 - with just a micro SD card slot, a mini HDMI port, two micro USB ports (one for power, one for USB), and 512MB of RAM. It has a single-core 1 GHz processor chip, similar to the Pi A+ and B+.
## CircuitPython
These downloads are for CircuitPython standalone on the Raspberry Pi (not Blinka). There is no underlying operating system. It is in early development.
After installing the disk image on an SD card, the normal CircuitPython USB workflow is available over the micro-B USB connector labeled "USB".
## Purchase
* [Adafruit](https://www.adafruit.com/product/2885)