circuitpython-org/_board/elecfreaks_picoed.md
Jeff Epler 4715875cc4 Fix board dates to always be of the form YYYY-MM-DD
.. 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")
```
2024-03-22 11:31:45 -05:00

61 lines
1.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
layout: download
board_id: "elecfreaks_picoed"
title: "ELECFREAKS Pico:ed Download"
name: "ELECFREAKS Pico:ed"
manufacturer: "ELECFREAKS"
board_url:
- "https://www.elecfreaks.com/picoed.html"
board_image: "elecfreaks_picoed.jpg"
date_added: 2022-04-21
family: raspberrypi
features:
- Speaker
- Display
- Solder-Free Alligator Clip
---
The **Pico:ed** is a development board based on **Raspberry Pi RP2040 MCU**. It uses dual-core Arm Cortex-M0+ processor with 264KB RAM. The front of the board contains two buttons and a 7x17 dot matrix screen, which can be conveniently used for classroom teaching.
## So why choose Pico:ed?
* A development board based on RP2040. Make it easier to use our Pico:ed in the classroom.
* Wavy edge connector to connect to devices without soldering.
* 7x17 LED fully programmable display. Can display text, numbers, and images.
* Two programmable buttons and logo LED.
* There is a button that can be reset directly RP2040.
* Designed by Raspberry Pi, RP2040 features a dual-core Arm Cortex-M0+ processor with 264kB internal RAM and support for up to 16MB of off-chip flash.
* A buzzer for playing beeps and tones.
## Features
1. Raspberry Pi RP2040 Chip
2. 7x17 LED matrix screen
3. Built-in LED
4. Built-in buzzer
5. 2 programmable buttons
6. USB & battery connector
7. Power status LED
8. Bootsel & reset button
9. 25-pins notched edge connector
10. Exquisite design
## Specifications
* MCU: RP2040
* SRAM: 264kB
* Flash: 2MB
* Programmable IO: 19 Pcs
* Onboard Device: Buzzer, LED, 7x17 LED matrix, 2 Buttons
* Program Language: CircuitPython/MicroPythonC++
* Size: About 52mm x 42mm
* Net Weight: 10g
## Documentations
* [Click here for Getting Started with Pico:ed.](https://www.elecfreaks.com/learn-en/pico-ed/index.html)
* [Click here for Getting Started with CircuitPython.](https://docs.circuitpython.org/)
## Purchase
* [ELECFREAKS](https://www.elecfreaks.com/elecfreaks-pico-ed-v2.html)