2022-05-07 23:49:54 +00:00
|
|
|
#include <avr/io.h>
|
2022-05-08 00:16:20 +00:00
|
|
|
#include <base.h>
|
|
|
|
|
|
|
|
#ifndef __SK9822_H__
|
|
|
|
#define __SK9822_H__
|
2022-05-07 23:49:54 +00:00
|
|
|
|
|
|
|
typedef struct RGB_s {
|
|
|
|
uint8_t brightness;
|
|
|
|
uint8_t r;
|
|
|
|
uint8_t g;
|
|
|
|
uint8_t b;
|
|
|
|
} rgb_t;
|
|
|
|
|
|
|
|
void send_pixels(io_pin_t data_pin, io_pin_t clock_pin, rgb_t *pixels, uint8_t count);
|
2022-05-08 00:16:20 +00:00
|
|
|
|
|
|
|
#endif
|