SNAKE_STM32F3
Loading...
Searching...
No Matches
ws2812b.h
Go to the documentation of this file.
1
11
12#ifndef INC_WS2812B_H_
13#define INC_WS2812B_H_
14
15#include <stdint.h>
16#include "main.h"
17
21#define LED_NUMBER 64
22
23
31void ws2812b_init(SPI_HandleTypeDef * spi_handler);
32
43void ws2812b_set_rgb(uint16_t diode_id, uint8_t R, uint8_t G, uint8_t B);
44
48void ws2812b_update(void);
49
50#endif /* INC_WS2812B_H_ */
void ws2812b_set_rgb(uint16_t diode_id, uint8_t R, uint8_t G, uint8_t B)
Sets chosen diode to specified RGB color.
Definition ws2812b.c:43
void ws2812b_update(void)
Transfers diode color values specified with ws2812b_set_rgb to physical display.
Definition ws2812b.c:77
void ws2812b_init(SPI_HandleTypeDef *spi_handler)
Initializes ws2812b handling module by passing given SPI handler.
Definition ws2812b.c:38