circuitpython-org/_board/circuitbrains_basic_m0.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

1.4 KiB

layout board_id title name manufacturer board_url board_image date_added family bootloader_id downloads_display blinka download_instructions
download circuitbrains_basic_m0 CircuitBrains Basic Download CircuitBrains Basic Null Byte Labs LLC
https://github.com/neubauek/CircuitBrains
circuitbrains_basic.jpg 2020-02-27 atmel-samd circuitbrains_basic_m0 true false

CircuitPython on an ARM Cortex M0 in 1 square inch! This "Just Add Solder" castellated module is perfect for incorporating into your own project. The CircuitBrains Basic board footprint is small enough to fit into narrow spaces and wearable projects.

NOTE: This board does not have a USB connector for the native USB. Native USB is broken out on the header/castellations and therefore requires a non-standard USB connection such as mounting to a motherboard PCB.

Technical Specs

  • Dimensions: 25 x 25 x 3.5 millimeters / 1 x 1 x 0.15 inches
  • Atmel ATSAMD21E18 Microcontroller (32-bit ARM Cortex M0)
  • 48 MHz
  • 32 KB SRAM
  • 256 KB Flash
  • 4 MB QSPI Flash
  • Onboard 3.3V LDO Regulator
  • Power and Status LEDs
  • Breakouts for SPI and I2C
  • Breakouts for 4 Analog and 8 Digital Inputs/Outputs

Purchase

Learn more