circuitpython-org/_blinka/orange_pi_4.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.8 KiB
Raw Blame History

layout board_id title name manufacturer board_url board_image download_instructions downloads_display blinka date_added features
download orange_pi_4 Orange Pi 4 Download Orange Pi 4 Shenzhen Xunlong Software CO.,Limited
http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-4.html
orange_pi_4.jpg https://learn.adafruit.com/circuitpython-on-orangepi-linux/circuitpython-orangepi true true 2022-10-06
Wi-Fi
Ethernet
Bluetooth/BLE
HDMI/DisplayPort
40-pin GPIO

Orange Pi 4 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.

Hardware specification

  • Rockchip RK3399 (28nm HKMG process)
  • 6-core ARM® 64-bit processor, main frequency speeds up to 2.0GHz
  • Based on the large and small size core architecture of big.LITTLE
  • Dual-core Cortex-A72 (large core) + Quad-core Cortex-A53 (small core)
  • Mali-T864 GPU
  • Supports OpenGL ES1.1/2.0/3.0/3.1, OpenVG1.1,OpenCL, DX11, support for AFBC
  • RK808 PMU
  • Dual 4GB LPDDR4 + 16GB EMMC Flash
  • Dual 4GB LPDDR4 +EMMC Flash (Default Empty)
  • AP6256, IEEE 802.11 a/b/g/n/ac, BT5.0
  • 10/100/1000Mbps Ethernet (Realtek RTL8211E)
  • Output: 3.5mm Jack and HDMI2.0a Input: MIC
  • 1 x HDMI 2.0 (Type-A), Supports 4K@60fps output
  • 1 x DP 1.2 (Display Port), Supports 4K@60fps output
  • Supports Dual MIPI-DSI 4 lines per channel
  • 2 x MIPI-CSI Camera connector (MIPI_RX0, MIPI_TX1/RX1)
  • 2 x USB2.0 HOST1x USB3.0 HOST, 1 x USB3.0 Type-C
  • Support RTC, on-board battery backup interface
  • 3 pins Debug UART
  • GPIO1 40 pins1 x I2S, 2 x I2C, 1 x SPI/UART, 8 x GPIO
  • GPIO2 24pin PCIE port
  • Upgrade Key & Reset Key
  • DC 5V/3A TYPE-C 5V/3A
  • Power led & Status led
  • Android 8.1, Ubuntu 16.04, Ubuntu 18.04, Debian 9

Purchase