28 lines
557 B
C
28 lines
557 B
C
#ifndef __neopixels_h__
|
|
#define __neopixels_h__
|
|
|
|
#include <avr/io.h>
|
|
#include <dio.h>
|
|
|
|
typedef struct RGB_s {
|
|
uint8_t r;
|
|
uint8_t g;
|
|
uint8_t b;
|
|
} rgb_t;
|
|
|
|
typedef struct RGBW_s {
|
|
uint8_t r;
|
|
uint8_t g;
|
|
uint8_t b;
|
|
uint8_t w;
|
|
} rgbw_t;
|
|
|
|
// void np_initialize();
|
|
void np_write_rgb(dio_t *, const rgb_t *, uint8_t);
|
|
// void np_write_grb(io_pin_t *addr, rgb_t *values, uint8_t length);
|
|
// void np_write_rgbw(io_pin_t *addr, rgbw_t *values, uint8_t length);
|
|
// void np_write_grbw(io_pin_t *addr, rgbw_t *values, uint8_t length);
|
|
|
|
#endif
|
|
|