RGB Led driver SK9822 through SPI.
More...
#include <rgb_matrix.hpp>
RGB Led driver SK9822 through SPI.
- Note
- Use flush() to write the leds
◆ RGBMatrix()
bsp::ygg::prph::RGBMatrix::RGBMatrix |
( |
| ) |
|
|
delete |
◆ clear()
static void bsp::ygg::prph::RGBMatrix::clear |
( |
| ) |
|
|
inlinestatic |
◆ dice()
static void bsp::ygg::prph::RGBMatrix::dice |
( |
u8 |
number, |
|
|
RGBA8 |
color |
|
) |
| |
|
inlinestatic |
Function to display a dice.
- Parameters
-
number | Number to display |
color | RGBA8 color |
◆ disable()
static void bsp::ygg::prph::RGBMatrix::disable |
( |
| ) |
|
|
inlinestatic |
◆ enable()
static void bsp::ygg::prph::RGBMatrix::enable |
( |
| ) |
|
|
inlinestatic |
◆ flush()
static void bsp::ygg::prph::RGBMatrix::flush |
( |
| ) |
|
|
inlinestatic |
Send the saved color values to the leds.
◆ init()
static bool bsp::ygg::prph::RGBMatrix::init |
( |
| ) |
|
|
inlinestatic |
Initialization function.
- Returns
- Success
◆ setLed()
static void bsp::ygg::prph::RGBMatrix::setLed |
( |
u8 |
index, |
|
|
RGBA8 |
color |
|
) |
| |
|
inlinestatic |
set a single led to RGBA8 color
- Parameters
-
index | Led number from 0 to 8 |
color | RGBA8 color |
◆ setLedMasked()
static void bsp::ygg::prph::RGBMatrix::setLedMasked |
( |
u16 |
enableMask, |
|
|
RGBA8 |
color |
|
) |
| |
|
inlinestatic |
set multiple leds to RGBA8 color using a bit mask
- Parameters
-
enableMask | Bitmask to enabled the leds |
color | RGBA8 color |
The documentation for this class was generated from the following file: