66 #ifdef WS2812_TARGET_PLATFORM_AVR
68 volatile uint8_t *
ddr;
72 #ifdef WS2812_TARGET_PLATFORM_ARDUINO_AVR
ALL PLATFORMS: Data structure to configure a WS2812 device struct.
volatile uint8_t * ddr
Data Direction Register (ex. DDRB, DDRC, DDRD...)
uint8_t n_dev
Number of WS2812 device to drive.
volatile uint8_t * port
PORT Register (ex. PORTB, PORTC, PORTD...)
uint8_t rst_time_us
Time required for the WS2812 device(s) to reset in us.
ws2812_order order
CoColor order of the WS2812 device(s) (ex. rgb, grb, bgr...)
uint8_t * pins
Array of pins used to program WS2812 devices (Must share the same PORT! (ex. PB0, PB1,...
ALL PLATFORMS: WS2812 device struct to drive one or more WS2812 devices.
uint8_t rgbmap[3]
RGB map to map/convert RGB values to another color order.
uint8_t rst_time_us
Time required for WS2812 to reset in us.
uint8_t masklo
PORT masks to toggle the data pins low.
uint8_t maskhi
PORT masks to toggle the data pins high.
volatile uint8_t * port
PORT register of pins used to drive the WS2812 device(s)
Exposes the Tiny-WS2812 library interface.
struct ws2812 ws2812
ALL PLATFORMS: WS2812 device struct to drive one or more WS2812 devices.
struct ws2812_cfg ws2812_cfg
ALL PLATFORMS: Data structure to configure a WS2812 device struct.
Definitions required by all platform specific headers.
ws2812_order
Enum to specify the WS2812 device's color order.