|
SNAKE_STM32F3
|
ws2812b diode matrix handling module based on ws2812b driver. More...
#include <stdint.h>#include <stdbool.h>

Go to the source code of this file.
Macros | |
| #define | MATRIX_DIM 8 |
| Width of the ws2812b matrix. | |
Functions | |
| void | ws2812b_matrix_set_coord (uint8_t x, uint8_t y, uint8_t R, uint8_t G, uint8_t B) |
| Sets diode of chosen coordinates to specified RGB color. | |
| void | ws2812b_matrix_fill (uint8_t R, uint8_t G, uint8_t B, uint8_t delay, bool update) |
| Fills diode matrix with one chosen color. | |
ws2812b diode matrix handling module based on ws2812b driver.
SPDX-License-Identifier: MIT
| #define MATRIX_DIM 8 |
Width of the ws2812b matrix.
| void ws2812b_matrix_fill | ( | uint8_t | R, |
| uint8_t | G, | ||
| uint8_t | B, | ||
| uint8_t | delay, | ||
| bool | update ) |
Fills diode matrix with one chosen color.
| R | R value of color (0 to 255) |
| G | G value of color (0 to 255) |
| B | B value of color (0 to 255) |
| delay | value of delay in ms between each diode state change (use only with update = true) |
| update | specifies if this function should update physical diode state. |

| void ws2812b_matrix_set_coord | ( | uint8_t | x, |
| uint8_t | y, | ||
| uint8_t | R, | ||
| uint8_t | G, | ||
| uint8_t | B ) |
Sets diode of chosen coordinates to specified RGB color.
| x | horizontal coordinate of chosen diode (0 to MATRIX_DIM -1) |
| y | vertical coordinate of chosen diode (0 to MATRIX_DIM -1) |
| R | R value of color (0-255) |
| G | G value of color (0-255) |
| B | B value of color (0-255) |
