Skip to content
Ken Sharp edited this page Dec 8, 2023 · 1 revision

Ws2812Open()

Create an WS2812 controller with the specified number of LEDs and data channel.

Syntax

Ws2812Open(unsigned short numLeds, unsigned char dataChan);

numLeds
The number of LEDs in the WS2812 chain.

dataChan
The data channel to use for the WS2812 control signal. Supported channels will vary by device.

Returns

int status

Related Links

Clone this wiki locally