Kaleidoscope
|
Macros | |
#define | w_zeropulse 350 |
#define | w_onepulse 900 |
#define | w_totalperiod 1250 |
#define | w_fixedlow 2 |
#define | w_fixedhigh 4 |
#define | w_fixedtotal 8 |
#define | w_zerocycles (((F_CPU/1000)*w_zeropulse )/1000000) |
#define | w_onecycles (((F_CPU/1000)*w_onepulse +500000)/1000000) |
#define | w_totalcycles (((F_CPU/1000)*w_totalperiod +500000)/1000000) |
#define | w1 (w_zerocycles-w_fixedlow) |
#define | w2 (w_onecycles-w_fixedhigh-w1) |
#define | w3 (w_totalcycles-w_fixedtotal-w1-w2) |
#define | w1_nops 0 |
#define | w_lowtime ((w1_nops+w_fixedlow)*1000000)/(F_CPU/1000) |
#define | w2_nops 0 |
#define | w3_nops 0 |
#define | w_nop1 "nop \n\t" |
#define | w_nop2 "rjmp .+0 \n\t" |
#define | w_nop4 w_nop2 w_nop2 |
#define | w_nop8 w_nop4 w_nop4 |
#define | w_nop16 w_nop8 w_nop8 |
Functions | |
void | ws2812_setleds (cRGB *ledarray, uint16_t leds) |
void | ws2812_setleds_pin (cRGB *ledarray, uint16_t leds, uint8_t pinmask) |
void | ws2812_sendarray (uint8_t *data, uint16_t datlen) |
void | ws2812_sendarray_mask (uint8_t *data, uint16_t datlen, uint8_t maskhi) |
#define w1 (w_zerocycles-w_fixedlow) |
#define w1_nops 0 |
#define w2 (w_onecycles-w_fixedhigh-w1) |
#define w2_nops 0 |
#define w3 (w_totalcycles-w_fixedtotal-w1-w2) |
#define w3_nops 0 |
#define w_fixedhigh 4 |
#define w_fixedlow 2 |
#define w_fixedtotal 8 |
#define w_lowtime ((w1_nops+w_fixedlow)*1000000)/(F_CPU/1000) |
#define w_nop1 "nop \n\t" |
#define w_nop2 "rjmp .+0 \n\t" |
#define w_onecycles (((F_CPU/1000)*w_onepulse +500000)/1000000) |
#define w_onepulse 900 |
#define w_totalcycles (((F_CPU/1000)*w_totalperiod +500000)/1000000) |
#define w_totalperiod 1250 |
#define w_zerocycles (((F_CPU/1000)*w_zeropulse )/1000000) |
#define w_zeropulse 350 |
void ws2812_sendarray | ( | uint8_t * | data, |
uint16_t | datlen | ||
) |
|
inline |
|
inline |
|
inline |