.. 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")
```
1.4 KiB
1.4 KiB
| layout | board_id | title | name | manufacturer | board_url | board_image | downloads_display | blinka | date_added | features | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| download | binho_nova | Nova | Nova | Binho |
|
binho_nova.jpg | true | true | 2019-12-03 |
The Binho Nova brings Multi-Protocol USB Host Adapters into the 21st Century. No more fumbling through development with cumbersome, clunky, out-dated adapters. Let your productivity soar to new heights!
With support for I2C, SPI, UART, 1-WIRE, SWI protocols all in one slim, robust package, it may even be the last adapter you’ll ever need...
With an intuitive user interface, our software is the quickest, simplest way to get up and running with your new Binho Nova. Whether you're working in a Windows, Linux, or macOS environment, our cross-platform solution has you covered. Alpha build available now with I2C, SPI, and IO functionality.
- Support for SPI @ 12MHz max clock
- Support for I2C @ 3.4MHz max clock
- Support for UART @ 1000000 max baud
- Support for Dallas 1-Wire
- Support for Atmel Single-Wire Interface
- Provides 3v3 and VUSB power rails
- 1 x DAC Output, 5 x ADC Inputs
- GPIO / Interrupt / PWM Support
- Programmable RGB Status LED
- Field-Upgradeable Device Firmware
- Cross-platform Support for Windows, Mac, Linux
- Robust, low-profile Aluminum Enclosure
- USB Type-C Connector