14 lines
519 B
C
14 lines
519 B
C
#include "pico/stdlib.h"
|
|
|
|
void ws2812_init(void);
|
|
void ws2812_affiche_buffer(void);
|
|
void ws2812_set_buffer_rgb(uint8_t rouge, uint8_t vert, uint8_t bleu, uint8_t index_led);
|
|
void ws2812_set_rgb(uint8_t rouge, uint8_t vert, uint8_t bleu, uint8_t index_led);
|
|
void ws2812_set_buffer_8bits(uint8_t couleur, uint8_t index_led);
|
|
void ws2812_arc_en_ciel(void);
|
|
void ws2812_set_led(uint8_t led, uint32_t couleur);
|
|
|
|
#define OFF_24BITS 0, 0, 0
|
|
#define ORANGE_24BITS 4, 1, 0
|
|
#define BLEU_24BITS 0, 0, 4
|
|
#define VERT_24BITS 0, 4, 1 |