.. 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.6 KiB
| layout | board_id | title | name | manufacturer | board_url | board_image | date_added | family | features | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| download | lilygo_twatch_2020_v3 | T-Watch 2020 V3 Download | T-Watch 2020 V3 | LILYGO |
|
lilygo_twatch_2020_v3.jpg | 2023-05-03 | esp32 |
|
LILYGO T-Watch 2020 V3 is based on the hardware function of T-WATCH-2020 and adds the PDM microphone function, which makes the product functions richer and more interesting. The MAX98357 I2S speaker is connected to the cloud and can be used to make intelligent voice control.
T-WATCH-2020 is based on a design concept that can be programmed, can be worn, can be networked, and can be interactive. Integrated ESP32 with WIFI/Bluetooth, easy to program and develop, and more convenient to connect to the Internet.
2D IPS 1.54-inch watch capacitive touch screen using OCA process, zinc alloy metal process frame, making the device structure more robust and beautiful. Suitable for wearable use, The sensitive capacitive touch screen makes human-computer interaction smoother.
Specifications
- ESP32-D0WDQ6-V3 Chip WiFi / Bluetooth
- FLASH 16MB
- SRAM 520 kB SRAM / PSRAM 8MB
- Custom function power button (6S / off) (/ 2S / on)
- OCA process of 1.54 inch IPS 2D arc capacitive touch screen
- Step algorithm function of BMA423 three-axis accelerometer
- AXP202 PMU
- PCF853 RTC chip
- MAX98357 I2S amplifier chip
- 8ʊ @ 1W speaker
- Vibrating motor
- Infrared signal transmitter
- PDM microphone added to t-watch-2020 V3