.. 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
1.6 KiB
| layout | board_id | title | name | manufacturer | board_url | board_image | date_added | downloads_display | blinka | download_instructions | family | bootloader_id | features | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| download | sensebox_mcu_esp32s2 | senseBox MCU-S2 Download | senseBox MCU-S2 | senseBox |
|
sensebox_mcu_esp32s2.jpg | 2024-02-21 | true | false | esp32s2 | sensebox_mcu_esp32s2 |
|
The new senseBox MCU-S2 with ESP32S2 core!
Features
- ESP32-S2 240 MHz Tensilica processor - the next generation of ESP32, now with native USB so it can act like a keyboard/mouse, MIDI device, disk drive, etc!
- Power options - USB-C or Lipoly battery
- Built-in battery charging when powered over USB-C
- Switch to turn on and off
- Reset and DFU (BOOT0) buttons to get into the ROM bootloader (which is a USB serial port so you don't need a separate cable!)
- 2 QWIIC connectors for I2C devices
- GPIO Ports
- UART Port
- XBEE Socket
- Onboard Sensors e.g. PD Module and 6 axis sensor
- Onboard MicroSD Card Slot
- On/Charge/User LEDs and status NeoPixel
- Works with Arduino or CircuitPython
Purchase
Add any links to purchase the board