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

layout board_id title name manufacturer board_url board_image downloads_display blinka date_added features
download odroid_c4 ODROID C4 Download ODROID C4 Hardkernel co., Ltd.
https://www.hardkernel.com/shop/odroid-c4/
odroid_c4.jpg true true 2020-05-15
Ethernet
HDMI/DisplayPort
40-pin GPIO
Infrared Receiver

ODROID-C4 is a new generation single board computer that is more energy efficient and faster performing than ODROID-C2 which was introduced over four years ago as the worlds first affordable ARM 64bit computer.

The main CPU of the ODROID-C4 is built with a quad-core Cortex-A55 cluster with a new generation Mali-G31 GPU. The A55 cores run at 2.0Ghz without thermal throttling using the stock heat sink allowing a robust and quiet computer. The CPU multi-core performance is around 40% faster, and the system DRAM performance is 50% faster than the ODROID-C2.

  • Amlogic S905X3 12nm Processor
  • Mali-G31 MP2 GPU with 4 x Execution Engines (650Mhz)
  • DDR4 4GiB with 32-bit bus width
  • 1x eMMC connector (8/16/32/64GiB are available)
  • 1x Micro SD slot (DS/HS mode up to UHS-I SDR104)
  • 1 x GbE LAN ports (RJ45, supports 10/100/1000 Mbps)
  • 1 x HDMI digital output
  • 1 x Optional SPDIF optical output
  • 40pin GPIOs + 7pin I2S
  • 1 x Debug serial console (UART)
  • 4 x USB 3.0 Host ports
  • 1 x USB 2.0 OTG port for Host or Device mode. (No power input)
  • IR receiver for remote controller

Purchase