.. 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.2 KiB
1.2 KiB
| layout | board_id | title | name | manufacturer | board_url | board_image | date_added | family | features | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| download | espressif_esp32_devkitc_v4_wrover | ESP32-DevKitC-VE-WROVER Download | ESP32-DevKitC-VE-WROVER | Espressif |
|
espressif_esp32_devkitc_v4_wrover.jpg | 2024-02-06 | esp32 |
|
ESP32-DevKitC is a low-footprint and entry-level development board that is part of the ESP32 series. This board has a rich peripheral set. The built-in ESP32 pinout is optimized for hassle-free prototyping!
ESP32 general-purpose development board, embeds ESP32-WROVERE, 8 MB flash, with pin header
This DevKit includes: ESP32-WROVER-E, EN button (restart), Boot button (download), USB-to-UART Bridge, Micro USB Port, 5V Power On LED, and an I/O connector.
Features
- A module with ESP32 at its core.
- Single USB-UART bridge chip provides transfer rates of up to 3 Mbps.
- USB interface
- 5V Power On LED
- 4 MB Flash Memory
- Internal PCB onboard antenna
- Male or Female Pin Headers