Closed SoftTacos closed 7 months ago
Probably creating specific constructors vs. modifying the current one would be a better approach.
// deprecated, use NewWS2812 or NewSK6812 depending on which device you want.
// calls NewWS2812() to avoid breaking everyone's existing code.
func New(pin machine.Pin) Device
// returns WS2812
func NewWS2812(pin machine.Pin) Device
// returns SK6812
func NewSK6812(pin machine.Pin) Device
Love it, I'll get that changed soon.
Thanks for working on this @SoftTacos now squash/merging.
Adds support for SK6812 (RGBA) LEDs to WS2812 device.
PR for issue: https://github.com/tinygo-org/drivers/issues/608