SiliconLabs / arduino

Arduino Core for Silicon Labs devices
77 stars 15 forks source link

[request] Add fast GPIO for WS2812 RGB LED #56

Open rei-vilo opened 3 months ago

rei-vilo commented 3 months ago

Summary

The ezWS2812 library relies on SPI to drive the WS2812. Problem is, only on signal is (MOSI) but two others (MISO, SCK) are required.

The Adafruit_NeoPixel library does not seem to support SiLabs MCUs.

The request is to use GPIO to drive the WS2912, either by adding support for SiLabs MCU to Adafruit_NeoPixel, or by implementing fast GPIO.

Thank you!

rei-vilo commented 3 months ago

Arduino seems to provide direct access to Gecko-SDK.

WS2813.zip includes the code developed with Simplicity Studio with GPIO_PinOutSet() and GPIO_PinOutClear().

It has been tested agasint the BG22 and BGM220P Explorer Kits and Arduino Nano Matter board. Faster MCUs may require an adaptation.

silabs-bozont commented 3 months ago

Hello @rei-vilo,

Yes, you have full access to the underlying GSDK :) A GPIO variant of ezWS2812 is in the works an will be coming in an upcoming release!

rei-vilo commented 3 months ago

Great!