Tiny-WS2812
1.0.0
A tiny cross-platform WS2812 LED Strip driver
|
C++ Wrapper implementation of blink_array.c. More...
Go to the source code of this file.
Macros | |
#define | N_LEDS 8 |
Number of LEDs on your WS2812 device(s) | |
#define | DATA_PINS_PORT PORTB |
Port register used to communicate with the WS2812 device(s) | |
#define | DATA_PINS_DDR DDRB |
Data direction register of the pin(s) used to communicate with the WS2812 device(s) | |
#define | DATA_PINS {PB0, PB1} |
Pin(s) used to communicate with the WS2812 device(s) | |
#define | RESET_TIME 50 |
Reset time in microseconds (50us recommended by datasheet) | |
#define | COLOR_ORDER grb |
Color order of your WS2812 LEDs (Typically grb or rgb) | |
Functions | |
int | main () |
C++ Wrapper implementation of blink_array.c.
This example showcases the blink array example on AVR platforms using the C++ wrapper of the Tiny-WS2812 driver. The purpose of this example is to merely showcase the differences between the C++ wrapper and the C interface. For a more detailed description of the functionality, consult the blink array example written in the C interface.
Definition in file blink_cpp.cpp.
int main | ( | ) |
Blinks one or more WS2812 device(s)
Definition at line 56 of file blink_cpp.cpp.