SNAKE_STM32F3
Toggle main menu visibility
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
31
void
ws2812b_init
(SPI_HandleTypeDef * spi_handler);
32
43
void
ws2812b_set_rgb
(uint16_t diode_id, uint8_t R, uint8_t G, uint8_t B);
44
48
void
ws2812b_update
(
void
);
49
50
#endif
/* INC_WS2812B_H_ */
ws2812b_set_rgb
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
ws2812b_update
void ws2812b_update(void)
Transfers diode color values specified with ws2812b_set_rgb to physical display.
Definition
ws2812b.c:77
ws2812b_init
void ws2812b_init(SPI_HandleTypeDef *spi_handler)
Initializes ws2812b handling module by passing given SPI handler.
Definition
ws2812b.c:38
firmware
SNAKE_STM32F3
libs
ws2812b
ws2812b.h
Generated by
1.17.0