WS2812
Last updated
Last updated
Library for the RGB LED with integrated controller.
Type
Name
void
void
void
void
void
The is controller that is built into a range of LEDs
Creates an instance of the class.
Parameters:
size number of RGB LEDs on stripe
Writes data to bus asynchronously.
Parameters:
buf pointer to buffer to write
Set all LEDs to the same color
Parameters:
colour color to set
The documentation for this class was generated from the following file: D:/w/hw-libs/\_libs\_/libraries/WS2812.h
(PinName d, int size) Creates an instance of the class.
()
(int buf)
(int buf, int r_offset = 0, int g_offset = 0, int b_offset = 0)
(int colour)
(int d)
(unsigned char II)
Connect address addr using SPI MOSI pins constructor.
d SPI MOSI pin (data pin of )