circuitpython-org/_blinka/radxa_rock_3a.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.5 KiB

layout board_id title name manufacturer board_url board_image download_instructions downloads_display blinka date_added features
download radxa_rock_3a Rock 3A Download Rock 3A Radxa Limited
https://wiki.radxa.com/Rock3/3a
radxa_rock_3a.jpg true true 2023-05-05
Wi-Fi
Ethernet
HDMI/DisplayPort
40-pin GPIO
USB 3.0

ROCK 3A is an improved version of the ROCK Pi 4. ROCK 3A features a quad core Cortex-A55 ARM processor, 32bit 3200Mb/s LPDDR4, up to 4K@60 HDMI, MIPI DSI, MIPI CSI, 3.5mm jack with mic, USB Port, GbE LAN, PCIe 3.0, PCIe 2.0, 40-pin color expansion header, RTC. Also, ROCK 3 supports USB PD and QC powering.

Key Features

  • RK3568, Quad A55 up to 2GHz, Mali G52 GPU, 0.8T NPU
  • eMMC module socket, 2GB/4GB/8GB LPDDR4 3200MT/s, DRAM controller frequency up to 1560MHz
  • uSD slot supports up to 128G uSD card
  • QC/PD power support, with a new generation QC/PD protocol IC
  • Two USB2 same as ROCK Pi 4, two USB3(1x OTG+1x HOST)
  • USB3 can be configured in SATA mode with a SATA breakout cable
  • GbE with PoE support
  • M.2 M key for NVMe with PCIe 3.0 x2 lanes
  • M.2 E key for connectivity with PCIe 2.0 x1/SDIO/UART, support WiFi 6 cards
  • 1x MIPI DSI, 1x MIPI CSI, compatible with ROCK Pi 4
  • 40P GPIO mostly compatible with ROCK Pi 4

Purchase