Driver for WS2812
WS2812 Class Reference
Library for the WS2812 RGB LED with integrated controller. More...
#include <WS2812.h>
Public Member Functions | |
WS2812 (PinName d, int size) | |
Creates an instance of the class. | |
~WS2812 () | |
void | write (int buf[]) |
Reads the current temperature. |
Detailed Description
Library for the WS2812 RGB LED with integrated controller.
The WS2812 is controller that is built into a range of LEDs
Definition at line 34 of file WS2812.h.
Constructor & Destructor Documentation
WS2812 | ( | PinName | d, |
int | size | ||
) |
Creates an instance of the class.
Connect WS2812 address addr using SPI MOSI pins
Definition at line 3 of file WS2812.cpp.
~WS2812 | ( | ) |
Destroys instance.
Definition at line 13 of file WS2812.cpp.
Member Function Documentation
void write | ( | int | buf[] ) |
Reads the current temperature.
Reads the temperature register of the LM75B and converts it to a useable value.
Definition at line 19 of file WS2812.cpp.
Generated on Sun Jul 24 2022 15:30:33 by 1.7.2