.. 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")
```
38 lines
1.9 KiB
Markdown
38 lines
1.9 KiB
Markdown
---
|
||
layout: download
|
||
board_id: "beaglebone_blue"
|
||
title: "BeagleBone Blue Download"
|
||
name: "BeagleBone Blue"
|
||
manufacturer: "BeagleBoard"
|
||
board_url:
|
||
- "https://beagleboard.org/blue"
|
||
board_image: "beaglebone_blue.jpg"
|
||
downloads_display: true
|
||
blinka: true
|
||
date_added: 2023-05-04
|
||
features:
|
||
- Wi-Fi
|
||
- Bluetooth/BLE
|
||
- STEMMA QT/QWIIC
|
||
---
|
||
|
||
BeagleBone® Blue is an all-in-one Linux-based computer for robotics, integrating onto a single small (3.5" x 2.15") board the Octavo OSD3358 microprocessor together with wifi/bluetooth, IMU/barometer, power regulation and state-of-charge LEDs for a 2-cell LiPo, H-Bridges, and discrete connectors for 4 DC motors+encoders, 8 servos, and all of the commonly-needed buses for additional peripherals in embedded applications. Fully open source and actively supported by a strong community, the real-time performance, flexible networking, and rich set of robotics-oriented capabilities make building mobile robots with the Blue fast, streamlined, affordable, and fun.
|
||
|
||
- AM335x 1GHz ARM® Cortex-A8 processor
|
||
- 512MB DDR3 RAM
|
||
- 4GB 8-bit eMMC flash storage
|
||
- Integrated power management
|
||
- 2×32-bit 200-MHz programmable real-time units (PRUs)
|
||
- NEON floating-point accelerator
|
||
- ARM Cortex-M3
|
||
- USB2 client for power & communications, USB2 host
|
||
- Battery support: 2-cell LiPo with balancing, LED state-of-charge monitor
|
||
- Charger input: 9-18V
|
||
- Wireless: 802.11bgn, Bluetooth 4.1 and BLE
|
||
- Motor control: 8 6V servo out, 4 bidirectional DC motor out, 4 quadrature encoder in
|
||
- Sensors: 9 axis IMU (accels, gyros, magnetometer), barometer, thermometer
|
||
- User interface: 11 user programmable LEDs, 2 user programmable buttons
|
||
- Easy connect JST interfaces for adding additional buses and peripherals including: GPS, DSM2 radio, UARTs, SPI, I2C, 1.8V analog, 3.3V GPIOs
|
||
|
||
## Purchase
|
||
* [Newark](https://www.newark.com/beagleboard/bbone-blue/beaglebone-blue-robotics-platform/dp/95Y0640)
|