.. 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_4_lts | Orange Pi 4 LTS Download | Orange Pi 4 LTS | Shenzhen Xunlong Software CO.,Limited |
|
orange_pi_4_lts.jpg | https://learn.adafruit.com/circuitpython-on-orangepi-linux/circuitpython-orangepi | true | true | 2022-10-06 |
|
Orange Pi 4 LTS is an open-source single-board computer with dual-band wireless WiFi and Bluetooth 5.0. It is highly compact with a dimension of 56 x 91mm.
Orange Pi 4 LTS uses the Rockchip RK3399(28nm HKMG Process), and has 3 GB /4GB LPDDR4 SDRAM, 16GB EMMC Flash(option). It can run Android 8.1,Ubuntu16.04,Ubuntu18.04,Debian9. Orange Pi 4 LTS offers a range of different ports, including HDMI output, 26pin headers, LCD connector, Gbps Ethernet port, 2USB 2.0, 1USB 3.0, 1*USB 3.0 TYPE-C, mini PCIE connector etc. It is powered through DC and Type-C. It is a good choice for applications that need strong networking perfomance.
Hardware specification
- Rockchip RK3399 (4GB) or Rockchip RK3399-T(3GB)
- Based on the large and small size of big.LITTLE core architecture:Dual-core Cortex-A72 (large core)+ Quad-core Cortex-A53(small core)
- 6-core ARMR64-bit processor ,main frequency speeds up to 1.6GHz(3GB)/1.8 GHz(4GB)
- High-performance Multi-core Mali-T860 GPU
- Supports OpenGL ES1.1/2.0/3.0/3.1, OpenVG1.1, OpenCL, DX11
- Support for AFBC
- RK808 PMU
- 3 GB /4GB LPDDR4
- 16GB EMMC Flash (option)
- MicroSD (TF) Card Slot
- Support 10/100M/1000M Ethernet (YT8531C)
- CDW.20U5622-00
- Support IEEE 802.11 a/b/g/n/ac, 2T2R • Support BT 5.0
- HDMI 2.0,Supports 4K@60fps output
- 1* DP 1.2(Display Port), Supports 4K@60fps output
- Supports Dual MIPl-DSI (4 lines Per Channel)
- Output: 3.5mm Jack and HDMI2.0a
- lnput: MIC
- 2 * MIPI-CSl Camera Connector (MIPI_RXO、MIPI_TX1/RX1)
- 2 * USB2.0 ,1*USB3.0,1 * USB3.0 Type-C
- 3 pins Debug UART
- GPIO1 26 pins
- Support Mini PCIe port
- Upgrade Key & Reset Key
- DC 5V/3A or 5V/4A, TYPE-C 5V/4A
- Power led & Status led
- Android, Ubuntu, Debian