.. 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")
```
3 KiB
| layout | board_id | title | name | manufacturer | board_url | board_image | date_added | family | bootloader_id | features | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| download | feather_m0_adalogger | Feather M0 Adalogger Download | Feather M0 Adalogger | Adafruit |
|
feather_m0_adalogger.jpg | 2019-03-09 | atmel-samd | feather_m0 |
|
Feather is a development board from Adafruit, and like its namesake it is thin, light, and lets you fly! Adafruit designed Feather to be a new open standard for portable microcontroller cores.
This is the Adafruit Feather M0 Adalogger - Adafruit's take on an 'all-in-one' Cortex M0 datalogger (or data-reader) with built in USB and battery charging. It is an Adafruit Feather M0 with a microSD holder. Check out the other boards in the Feather family.
At the Feather M0's heart is an ATSAMD21G18 ARM Cortex M0 processor, clocked at 48 MHz and at 3.3 V logic, the same one used in the new Arduino Zero. This chip has a whopping 256 KB of FLASH (8x more than the Atmega328 or 32u4) and 32 KB of RAM (16x as much)! This chip comes with built in USB so it has USB-to-Serial program & debug capability built in with no need for an FTDI-like chip.
To make it easy to use for portable projects, Adafruit added a connector for 3.7 V Lithium polymer batteries and built in battery charging. You don't need a battery, it will run just fine straight from the micro USB connector. But, if you do have a battery, you can take it on the go, then plug in the USB to recharge. The Feather will automatically switch over to USB power when its available. The battery is tied thru a divider to an analog pin, so you can measure and monitor the battery voltage to detect when you need a recharge.
Technical details
- Measures 2.0" x 0.9" x 0.28" (51 mm x 23 mm x 8 mm) without headers soldered in
- Light as a (large?) feather - 5.3 grams
- ATSAMD21G18 @ 48MHz with 3.3V logic/power
- 256 KB of FLASH + 32 KB of RAM
- No EEPROM
- 3.3 V regulator with 500 mA peak current output
- USB native support, comes with USB bootloader and serial port debugging
- 20x GPIO pins
- Hardware Serial, hardware I2C, hardware SPI support
- 8x PWM pins
- 10x analog inputs
- Built in 100 mA lipoly charger with charging status indicator LED
- Pin #13 red LED for general purpose blinking
- Power/enable pin
- 4 mounting holes
- Reset button
The Feather M0 Adalogger uses the extra space left over to add MicroSD + a green LED:
- Pin #8 green LED for your blinking pleasure
- MicroSD card holder for adding as much storage as you could possibly want, for reading or writing.
Comes fully assembled and tested, with a USB bootloader. Includes some header so you can solder it in and plug into a solderless breadboard.