.. 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")
```
2.3 KiB
2.3 KiB
| layout | board_id | title | name | manufacturer | board_url | board_image | download_instructions | downloads_display | blinka | date_added | features | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| download | orange_pi_5 | Orange Pi 5 Download | Orange Pi 5 | Shenzhen Xunlong Software CO., Limited |
|
orange_pi_5.jpg | true | true | 2023-05-08 |
|
Orange Pi 5 uses Rockchip RK3588S new generation 8-core 64-bit processor, quad-core A76+quad-core A55, with 8nm process design, up to 2.4GHz main frequency, integrated ARM Mali-G610 GPU, embedded high-performance 3D/2D image acceleration module, built-in NPU with 6Tops computing power, with 4GB/8GB/16GB/32GB (LPDDR4/4x), and up to 8K display processing capability.
Orange Pi 5 provides abundant interfaces, including HDMI output, GPIO interface, M.2 PCIe2.0, Type-C, Gigabit LAN port, 2USB2.0, 1USB3.0, etc.; It can be widely used in tablets, edge computing, artificial intelligence, cloud computing, AR/VR, intelligent security, smart home and other fields, covering AIoT various industries.
Specifications
- Rockchip RK3588S (8nm LP process)
- 8-core 64-bit processor Big.Little Architecture: 4xCortex-A76 and 4xCortex-A55, Big core cluster is 2.4GHz, and Little core cluster is 1.8GHz frequency.
- Arm Mali-G610 MP4 “Odin” GPU Compatible with OpenGL ES1.1/2.0/3.2, OpenCL 2.2 and Vulkan 1.2 3D graphics engine and 2D graphics engine
- Built-in AI accelerator NPU with up to 6 TOPS, supports INT4/INT8/INT16 mixed operation
- RK806-1 PMU
- 4GB/8GB/16GB /32GB(LPDDR4/4x)
- QSPI Nor FLASH 16MB MicroSD (TF) Card Slot M.2 M-KEY Socket USB3.0 × 1 USB2.0 × 2 Type-C (USB3.1) ×1
- HDMI2.1, up to 8K @60Hz DP1.4 (DisplayPort), DP1.4 and USB3.1 ports are multiplexed, and the port is shared with Type-C 2 * MIPI D-PHY TX 4Lane, configurable up to 4K @60Hz
- MIPI CSI 4Lane 2 * MIPI D-PHY RX 4Lane
- CODEC: ES8388 3.5mm headphone jack audio input/output Input: Onboard MIC HDMI 2.1 eARC
- 10/100/1000Mbps Ethernet
- For extending UART, PWM, I2C, SPI, CAN and GPIO interfaces.
- Support PCIe NVMe SSD Support custom PCIe Wi-Fi6+BT5.0 module
- 1×MaskROM key 1×Recovery key 1×On/Off key
- Support Type-C power supply, 5V @ 4A
- 3 Pin debug serial port (UART)