Tiny-WS2812
1.0.0
A tiny cross-platform WS2812 LED Strip driver
|
Provides AVR platform specific definitions. More...
Go to the source code of this file.
Classes | |
struct | ws2812_cfg |
ALL PLATFORMS: Data structure to configure a WS2812 device struct. More... | |
struct | ws2812 |
ALL PLATFORMS: WS2812 device struct to drive one or more WS2812 devices. More... | |
Typedefs | |
typedef struct ws2812_cfg | ws2812_cfg |
ALL PLATFORMS: Data structure to configure a WS2812 device struct. More... | |
typedef struct ws2812 | ws2812 |
ALL PLATFORMS: WS2812 device struct to drive one or more WS2812 devices. More... | |
ALL PLATFORMS: WS2812 device struct to drive one or more WS2812 devices.
The following struct is used to drive one or more WS2812 devices. It is initialized by the ws2812_config() function and is taken as an argument by practically every function of the TinyWS2812 library relevant to driving WS2812 devices (ex. ws2812_tx(), ws2812_prep_tx(), etc...).
typedef struct ws2812_cfg ws2812_cfg |
ALL PLATFORMS: Data structure to configure a WS2812 device struct.
The following struct is used to initialize/configure a WS2812 device struct It is passed to the ws2812_config() function along with a reference to a WS2812 device struct, and contains relevant information such as pins used to drive WS2812 devices, the device's reset time etc.
This struct vareies between platforms, and is defined in the platform specific header file (ws2812_PLATFORM.h
).