Tiny-WS2812  1.0.0
A tiny cross-platform WS2812 LED Strip driver
Public Attributes | List of all members
ws2812 Struct Reference

ALL PLATFORMS: WS2812 device struct to drive one or more WS2812 devices. More...

#include <ws2812_avr.h>

Public Attributes

volatile uint8_t * port
 PORT register of pins used to drive the WS2812 device(s)
 
uint8_t rst_time_us
 Time required for WS2812 to reset in us.
 
uint8_t maskhi
 PORT masks to toggle the data pins high.
 
uint8_t masklo
 PORT masks to toggle the data pins low.
 
uint8_t rgbmap [3]
 RGB map to map/convert RGB values to another color order.
 
uint16_t port_baseaddr
 Base address of the port used to drive WS2812 devices (ex. GPIOA_BASE, GPIOB_BASE, etc...)
 

Detailed Description

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...).

See also
ws2812_config()

Definition at line 107 of file ws2812_avr.h.


The documentation for this struct was generated from the following files: