.. 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")
```
36 lines
1.4 KiB
Markdown
36 lines
1.4 KiB
Markdown
---
|
|
layout: download
|
|
board_id: "waveshare_esp32s2_pico"
|
|
title: "ESP32-S2-Pico Download"
|
|
name: "ESP32-S2-Pico"
|
|
manufacturer: "Waveshare"
|
|
board_url:
|
|
- "https://www.waveshare.com/esp32-s2.htm"
|
|
board_image: "waveshare_esp32s2_pico.jpg"
|
|
bootloader_id: waveshare_esp32s2_pico
|
|
date_added: 2022-08-21
|
|
family: esp32s2
|
|
features:
|
|
- Breadboard-Friendly
|
|
- USB-C
|
|
- Wi-Fi
|
|
---
|
|
|
|
This is a WiFi development board with compact size, plenty peripheral interfaces, integrated low-power Wi-Fi System-on-Chip (SoC) and mass memory, supporting Raspberry Pi Pico expansion board ecosystem.
|
|
Equipped with hardware crypto accelerator, RNG, HMAC and Digital Signature module, it can meet the security requirements of the Internet of Things.
|
|
|
|
## Technical details
|
|
|
|
- **ESP32-S2FH4** - Xtensa single-core 32-bit LX7 240Mhz microprocessor
|
|
- **Boot & Reset** buttons to get into the bootloader
|
|
- **TPS63000DRCR** on-board 1.8A current high efficiency boost/buck DC-DC power supply IC
|
|
- Integrated 320KB SRAM, 128KB ROM, 8MB PSRAM, 4MB Flash memory
|
|
- Support IEEE802.11 b/g/n, on-board 2.4 GHz WiFi ceramic antenna, up to 150 Mbps data transfer rate
|
|
- USB-C connector, no more plug orientation problem
|
|
|
|
Waveshare wiki [link](https://www.waveshare.com/wiki/ESP32-S2-Pico).
|
|
|
|
## Purchase
|
|
Add any links to purchase the board
|
|
* [Waveshare](https://www.waveshare.com/esp32-s2.htm)
|
|
* [Grobotronics](https://grobotronics.com/waveshare-esp32-s2-wifi-development-board.html)
|