8000 ports/nrf/boards/SUPERMINI_NRF52840 board definition + machine_bitstream. by jkorte-dev · Pull Request #15482 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

ports/nrf/boards/SUPERMINI_NRF52840 board definition + machine_bitstream. #15482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jkorte-dev
Copy link
@jkorte-dev jkorte-dev commented Jul 17, 2024

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.

The Supermini NRF52840 is a clone of the NiceNano board.
The board definition includes a machine_bitstream driver
to drive NeoPixel leds.

Signed-off-by: Joerg Korte <joerg.korte@gmail.com>
@jkorte-dev jkorte-dev force-pushed the board-nrf52840-supermini branch from a31ac66 to 788c208 Compare July 17, 2024 20:47
@jkorte-dev jkorte-dev changed the title ports/nrf/boards/SUPERMINI_NRF52840: New board definition for Supermini NRF52840. ports/nrf/boards/SUPERMINI_NRF52840 board definition + machine_bitstream. Jul 19, 2024
@JDRBoston
Copy link

I'll be happy to test your build in controlling the NeoPixel on the Adafruit Feather nRF52840 board. Do you know how your pin mappings might apply to that board? There, the NeoPixel resides on GPIO P0.16? pin = Pin(16. Pin.OUT) indicates that it isn't a valid pin identifier.

Update pins.csv to support pins of Adafruit Feather nRF52840 Express.
Update mpconfigboard.h for latest micropython.

Signed-off-by: Joerg Korte <joerg.korte@gmail.com>
@robert-hh robert-hh added the board-definition New or updated board definition files. Combine with a port- label. label Mar 7, 2025
@jkorte-dev jkorte-dev force-pushed the board-nrf52840-supermini branch from cbd5cba to 2c68606 Compare March 7, 2025 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board-definition New or updated board definition files. Combine with a port- label.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0