.. 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.3 KiB
1.3 KiB
| layout | board_id | title | name | manufacturer | board_url | board_image | date_added | family | features | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| download | lilygo_tdisplay_s3 | T-Display S3 Download | T-Display S3 | LILYGO |
|
lilygo_tdisplay_s3.jpg | 2024-03-09 | esp32s3 |
|
The LILYGO T-Display S3 is a compact development board based on the ESP32-S3 chip. It features a 1.9-inch ST7789 LCD display using a parallel bus, with an optional CST816 touchscreen.
Technical details
- ESP32-S3 Dual-core 32-bit LX7 microprocessor
- 16 MB Flash memory
- 8 MB PSRAM
- 1.9 inch ST7789 LCD display, optional CST816 touchscreen
- Wi-Fi 802.11 b/g/n, BLE 5.0 + BT mesh
- 2 user buttons (
IO0for Boot andIO14for custom functions), 1 reset button - Battery charging circuit (JST connector for Li-Po battery)
- USB-C for programming and power
- Onboard LED