adafruit / Adafruit_NeoPixel

Arduino library for controlling single-wire LED pixels (NeoPixel, WS2812, etc.)
GNU Lesser General Public License v3.0
3.07k stars 1.27k forks source link

Add support for Arduino Portenta H7 #281

Open ceilingduster opened 3 years ago

ceilingduster commented 3 years ago

Please add support for Arduino Portenta H7. Currently, sketches will compile and upload/run however nothing happens.

Microcontroller STM32H747XIH6
Architecture STSTM32
Frequency 480MHz
Flash 768KB
RAM 511.35KB
Vendor Arduino
ladyada commented 3 years ago

we'd welcome any PR!

Workshopshed commented 3 years ago

Not even close to being ready for a PR but a proof of concept. https://github.com/Workshopshed/Adafruit_NeoPixel

I've added a function that sends data from the Portenta via pin D0.

Based off https://wp.josh.com/2014/05/13/ws2812-neopixels-are-not-so-finicky-once-you-get-to-know-them/ and https://forum.arduino.cc/t/fast-gpio-toggle-with-portenta-h7-using-hal/682470

Known limitations Only tested at 800Khz. Only tested on the M4 core. Hardcoded to pin D0

Tested with 2x12 NeoPixel rings and a pair of GRBW neopixel buttons.