circuitpython-org/_blinka/lemaker_banana_pro.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

layout board_id title name manufacturer board_url board_image download_instructions downloads_display blinka date_added features
download lemaker_banana_pro Banana Pro Download Banana Pro LeMaker
https://en.wikipedia.org/wiki/Banana_Pi#Banana_Pi_Pro
lemaker_banana_pro.jpg true true 2023-09-06
HDMI/DisplayPort
40-pin GPIO
Wi-Fi
Ethernet

LeMaker Banana Pro is an updated version of its predecessor Banana Pi, a low-cost single-board computer.

The Banana Pro is a credit card-sized and low-power single-board computer developed in China by the LeMaker Team, with the goal of promoting STEM (science, technology, engineering and mathematics) education in schools.

Like its smaller sibling the Banana Pi, the Pro concept is heavily influenced by the Raspberry Pi, however the Banana Pro provides various enhancements over prior designs.

The Banana Pro has an Allwinner A20 system on a chip (SoC), which includes an ARM Cortex-A7 Dual-core (ARMv7-A) 1 GHz, Mali-400 MP2 GPU and 1GB DDR3 SDRAM.

The Banana Pro uses a microSD card for booting an OS, but also includes a SATA 2.0 interface to allow connection of a hard disk for additional storage, however you cannot boot from the hard disk.

Other differences from the Banana Pi include on-board Wi-Fi 802.11b/g/n AP6181, integrated composite video and audio output into a 3.5 mm TRRS jack. This makes space for a 40-pin extension header.

Purchase