.. 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.1 KiB
3.1 KiB
| layout | board_id | title | name | manufacturer | board_url | board_image | date_added | family | bootloader_id | features | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| download | circuitplayground_express_digikey_pycon2019 | Circuit Playground Express Digi-Key PyCon 2019 Download | Circuit Playground Express Digi-Key | Adafruit |
|
circuitplayground_express_digikey_pycon2019.jpg | 2019-04-13 | atmel-samd | circuitplay_m0 |
|
The Circuit Playground Express is Adafruit's flagship educational board designed for CircuitPython.
It brings the "batteries included" approach of Python to hardware by including an assortment of functionality built-in. It is one of the best beginner boards available. If you are new to hardware, then this is a great board to start with.
Technical details
- 10x mini NeoPixels, each one can display any color
- 1x Motion sensor (LIS3DH triple-axis accelerometer with tap detection, free-fall detection)
- 1x Temperature sensor (thermistor)
- 1x Light sensor (phototransistor). Can also act as a color sensor and pulse sensor.
- 1x Sound sensor (MEMS microphone)
- 1x Mini speaker with class D amplifier (7.5 mm magnetic speaker/buzzer)
- 2x Push buttons, labeled A and B
- 1x Slide switch
- Infrared receiver and transmitter - can receive and transmit any remote control codes, as well as send messages between Circuit Playground Expresses. Can also act as a proximity sensor.
- 8x alligator-clip friendly input/output pins
- Includes I2C, UART, 8 pins that can do analog inputs, multiple PWM output
- 7 pads can act as capacitive touch inputs and the 1 remaining is a true analog output
- Green "ON" LED so you know its powered
- Red
board.D13LED for basic blinking - Reset button
- ATSAMD21 ARM Cortex M0 Processor, running at 3.3 V and 48 MHz
- 2 MB of SPI Flash storage, used to store code and libraries.
- MicroUSB port for programming and debugging
- USB port can act like serial port, keyboard, mouse, joystick or MIDI!
Tutorials
Downloads
- PyCon 2019 Circuit Playground Express Default Files
- PyCon 2019 Open Spaces Example Content
- Pycon 2019 Circuit Playground Express Quickstart Worksheet