ports/nrf/boards/SUPERMINI_NRF52840 board definition + machine_bitstream. #15482
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Supermini NRF52840 is a clone of the NiceNano board based on the Pro Micro layout. The board definition includes a machine_bitstream driver to drive NeoPixel leds.
Summary
the Supermini NRF52840 is a quite popular and affordable board available from various resellers in Asia / Europe / US.
The board definition has been extended to work for Adafruit Feather nRF52840 Express
as well. I added machine.bitstream for nrf52 to be able to drive Neopixel LEDs . The machine_bitstream.c code is based on machine_bitstream of stm32 and w600 port and was adopted for the nrf52840. The driver should work with any nrf52 board (confirmed to work on a Adafruit Feather nRF52840 Express). The bitstream driver is includes here but can extract it to be used with other nrf52 series boards.
Testing
I tested basic functionality of the board. The neopixel driver was tested with a bunch of Neopixel LEDs/ LED matrix and the timing verified with a simple logic analyzer.
Trade-offs and Alternatives
Please let me know if I have overseen any trade-offs.