circuitpython-org/_blinka/pine_h64.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 pine_h64 PINE H64 Download PINE H64 Pine64
https://www.pine64.org/pine-h64-ver-b/
pine_h64.jpg true true 2020-11-01
Wi-Fi
Bluetooth/BLE
Ethernet
HDMI/DisplayPort
40-pin GPIO

PINE H64 is latest Single Board Computer by Pine64. Its powered by an Allwinner “H6” Quad-Core ARM Cortex A53 64-Bit Processor with MALI T-722 GPU. The PINE H64 is equipped with up-to 3GB LPDDR3 PC-1600 system memory and 128Mb SPI boot Flash. There is also an optional eMMC module (up to 128GB) and microSD slot for booting. The board is equipped with an onboard build-in 11n Wifi/BT, 1x USB 3.0 Host, 2x USB 2.0 Host, Gigabit Ethernet, PI-2 GPIO Bus, Euler GPIO Bus as well as many other peripheral device interface such as UART, SPI, I2C, for makers to integrate with sensors and other peripherals.

  • Allwinner H6 Quad-Core SOC with Mali T-722 MP2
  • LPDDR3 RAM (up to 3GB)
  • Gigabit Ethernet
  • Micro SD Slot
  • eMMC Module Slot
  • SPI Flash 128Mbit
  • 4K Digital Video Out
  • 2x USB 2.0 Host
  • 1x USB 3.0 Host
  • PI-2 Bus
  • IR R/X Port
  • Real Time Clock Port (RTC)
  • A/V Jack
  • Integrated WiFi 802.11n / BT 4.0
  • Power, Reset and Recovery buttons
  • 3.5mm Barrel Power (5V 3A) Port

Purchase