circuitpython-org/_board/sparkfun_nrf52840_mini.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.9 KiB
Raw Permalink Blame History

layout board_id title name manufacturer board_url board_image date_added family features
download sparkfun_nrf52840_mini nRF52840 Mini Download Pro nRF52840 Mini SparkFun
https://www.sparkfun.com/products/15025
sparkfun_nrf52840_mini-01.jpg 2019-03-09 nrf52840
Battery Charging
Bluetooth/BTLE
STEMMA QT/QWIIC

The SparkFun Pro nRF52840 Mini is a breakout and development board for Nordic Semiconductors nRF52840 a powerful combination of ARM Cortex-M4 CPU and 2.4GHz Bluetooth radio. With the nRF52840 at the heart of your project, youll be presented with a seemingly endless list of project-possibilities in an incredibly small package.

SparkFun's mini development board for the nRF52840 breaks out most of the critical I/O pins including GPIO and those needed for power while maintaining a small footprint that nearly matches that of the Arduino Pro Mini (except those covered by the Qwiic Connector). It features a USB interface (using the nRF52840s native USB support), which can be used to program, power, and communicate with the chip making it able to be used for any purpose (UART, I2C, SPI) that those of the Arduino Pro Mini could. The Pro nRF52840 Mini features a Raytac MDBT50Q-P1M module. This module connects the nRF52840 to a trace antenna, fits the IC into an FCC-approved footprint, and also includes a lot of the decoupling and timing mechanisms that would otherwise be required for a bare nRF52840 design. Also included onboard is a LiPo battery charger, a Qwiic connector, an on/off switch, a reset switch, and a user LED/button.

The board comes pre-programmed with a USB bootloader. You can develop programs for the nRF52840s Cortex-M4 using either Arduino, CircuitPython, or C (using Nordics nRF5 SDK), and load that compiled code using a USB serial or mass-storage interface.

Purchase