.. 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.4 KiB
1.4 KiB
| layout | board_id | title | name | manufacturer | board_url | board_image | date_added | family | bootloader_id | features | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| download | fluff_m0 | Fluff M0 Download | Fluff M0 | Radomir Dopieralski |
|
fluff_m0.jpg | 2020-05-22 | atmel-samd | fluff_m0 |
|
A minimal CircuitPython board compatible with the Feather M0 Basic. Everything that is non-essential has been removed, and the smallest possible chip is used.
Here are some handy specs!
- Measures 2.0" x 0.9" x 0.28" (51mm x 23mm x 8mm) without headers soldered in
- ATSAMD21E18 @ 48MHz with 3.3V logic/power
- 256KB of FLASH + 32KB of RAM
- No EEPROM
- 3.3V regulator with 500mA peak current output
- USB native support, comes with USB bootloader and serial port debugging
- You also get tons of pins - 23 GPIO pins
- Hardware Serial, hardware I2C, hardware SPI support
- 8 x 12-bit analog inputs
- 1 x 10-bit analog ouput (DAC)
- Yellow LED for general purpose blinking
- 4 mounting holes
Differences from Feather M0
- No battery charger
- No crystal
- No external flash
- No reset button
- No enable pin, instead you get another GPIO pin
- Two additional analog pins (AREF and A6)
- LED is on a separate, dedicated pin, not on D13
- USB-C PCB socket