circuitpython-org/_blinka/orange_pi_zero2.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.4 KiB
Raw Permalink Blame History

layout board_id title name manufacturer board_url board_image download_instructions downloads_display blinka date_added features
download orange_pi_zero2 Orange Pi Zero2 Download Orange Pi Zero2 Shenzhen Xunlong Software CO.,Limited
http://www.orangepi.org/Orange%20Pi%20Zero2/
orange_pi_zero.jpg true true 2020-02-08
Wi-Fi
Bluetooth/BLE
Ethernet
HDMI/DisplayPort

Orange Pi Zero2 is for anyone who wants to start creating with technology not just consuming it. It's a simple, fun, useful tool that you can use to start taking control of the world around you.

  • Allwinner H616 64-bit high-performance Quad-core Cortex-A53 processor
  • Mali G31 MP2
  • Supports OpenGL ES 1.0/2.0/3.2, OpenCL 2.0
  • 512 MB/1 GB DDR3 (Shared with GPU)
  • TF card slot
  • 2 MB SPI Flash
  • Support 1000M/100M/10M Ethernet
  • Onboard Wifi + Bluetooth
  • AW859A Chip
  • Support IEEE 802.11 a/b/g/n/ac
  • Support BT5.0
  • USB-C interface 5 V/2 A input
  • 3*USB 2.0 HOST (Two of them are via 13pin interface board)
  • UART-TX, UART-RX and GND
  • Power Button(SW602)
  • 26pin header with I2C, SPI, UART and multiple GPIO ports
  • 13pin header with 2*USB Host, IR pin, Tv-out, AUDIO (no MIC) and 3 GPIO ports
  • Power led & Status led
  • Android 4.4, Lubuntu, Debian, Armbian Image

Purchase