circuitpython/ports/nrf/boards/sparkfun_nrf52840_mini/README.md

2.7 KiB

SparkFun Pro nRF52840 Mini Breakout

The SparkFun Pro nRF52840 Mini small breakout board for Raytac's MDBT50Q-P1M module, which features an nRF52840. It breaks out as many pins as it can in an Arduino Pro Mini footprint. Also included on the board are a qwiic (I2C) connector, LiPo battery charger, and on/off switch.

Note: the SparkFun Pro nRF52840 Mini Breakout does not include a QSPI external flash. Any Python code will need to be stored on the internal flash filesystem.

CircuitPython Pin Defs

CircuitPython pin definitions try to follow those of the Arduino Pro Mini, which the footprint is based on.

This can be somewhat confusing, especially around the analog pins. Here's a quick pin-map:

Board pin labelDigital Pin ReferenceAdditional Pin CapabilitiesPin/Port Reference
17D1TXP0_17
15D0RXP0_15
8SDAP0_08
11SCLP0_11
19D3P0_19
20D4P0_20
21D5P0_21
22D6P0_22
23D7P0_23
9D8P0_09
10D9P0_10
2D10A0P0_02
3D11MOSI, A1P0_03
31D12MISO, A7P0_31
30D13SCK, A6P0_31
29A5P0_29
28A4P0_28
5A3P0_05
4A2P0_04

If a pin isn't defined as D0, D1, etc., standard port/pin references should work -- e.g. P0_17 is pin 17, P0_02 is pin 2, etc.

Bootloader Notes

The nRF52840 Mini ships with a slightly modified (i.e pin defs and USB defs) version of the Adafruit nRF52 bootloader, which supports UF2 and CDC bootloading.

Hardware Reference

The nRF52840 Mini hardware layout is open source: