34 ws2812_cpp::ws2812_cpp(
ws2812_cfg *cfg, uint8_t *ret)
39 void ws2812_cpp::prep_tx()
49 void ws2812_cpp::wait_rst()
54 void ws2812_cpp::close_tx()
ws2812_rgb leds[N_LEDS]
RGB array which represents the LEDs.
ALL PLATFORMS: Data structure to configure a WS2812 device struct.
Data structure to hold RGB color values.
void ws2812_close_tx(ws2812 *dev)
Closes a WS2812 transmission.
void ws2812_wait_rst(ws2812 *dev)
Waits for the WS2812 device to reset.
uint8_t ws2812_config(ws2812 *dev, ws2812_cfg *cfg)
Configures a WS2812 device struct.
void ws2812_prep_tx(ws2812 *dev)
Prepares the host device for data transmission.
void ws2812_tx(ws2812 *dev, ws2812_rgb *leds, size_t n_leds)
Transmits RGB values to the provided WS2812 device.
C++ Wrapper for the Tiny-WS2812 interface.