Kaleidoscope
Macros | Functions
light_ws2812.h File Reference
#include <avr/io.h>
#include <avr/interrupt.h>
#include "ws2812_config.h"
#include "Kaleidoscope-Hardware-Shortcut.h"
Include dependency graph for light_ws2812.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CONCAT(a, b)   a ## b
 
#define CONCAT_EXP(a, b)   CONCAT(a, b)
 
#define ws2812_PORTREG   CONCAT_EXP(PORT,ws2812_port)
 
#define ws2812_DDRREG   CONCAT_EXP(DDR,ws2812_port)
 

Functions

void ws2812_setleds (cRGB *ledarray, uint16_t number_of_leds)
 
void ws2812_setleds_pin (cRGB *ledarray, uint16_t number_of_leds, uint8_t pinmask)
 
void ws2812_sendarray (uint8_t *array, uint16_t length)
 
void ws2812_sendarray_mask (uint8_t *array, uint16_t length, uint8_t pinmask)
 

Macro Definition Documentation

◆ CONCAT

#define CONCAT (   a,
 
)    a ## b

◆ CONCAT_EXP

#define CONCAT_EXP (   a,
 
)    CONCAT(a, b)

◆ ws2812_DDRREG

#define ws2812_DDRREG   CONCAT_EXP(DDR,ws2812_port)

◆ ws2812_PORTREG

#define ws2812_PORTREG   CONCAT_EXP(PORT,ws2812_port)

Function Documentation

◆ ws2812_sendarray()

void ws2812_sendarray ( uint8_t *  array,
uint16_t  length 
)

◆ ws2812_sendarray_mask()

void ws2812_sendarray_mask ( uint8_t *  array,
uint16_t  length,
uint8_t  pinmask 
)
inline

◆ ws2812_setleds()

void ws2812_setleds ( cRGB ledarray,
uint16_t  number_of_leds 
)
inline

◆ ws2812_setleds_pin()

void ws2812_setleds_pin ( cRGB ledarray,
uint16_t  number_of_leds,
uint8_t  pinmask 
)
inline