|
|
| UnitSK6812 (const uint16_t num_of_pixels, const rgb::Order order) |
| |
| virtual gpio::adapter_config_t | rmt_config () override |
| |
| virtual gpio::m5_rmt_item_t | rmt_item_one () override |
| |
| virtual gpio::m5_rmt_item_t | rmt_item_zero () override |
| |
| virtual gpio::m5_rmt_item_t | rmt_item_reset () override |
| |
|
virtual types::category_t | unit_category () const override |
| |
|
container_type & | pixels () |
| |
|
rgb::Color | get_pixel_color (const uint16_t n) const |
| |
|
bool | set_pixel_color (const uint16_t n, const rgb::Color &c) |
| |
|
uint8_t | rotation_of (const int8_t r) const |
| |
|
virtual uint16_t | index_of (const uint16_t n) const |
| |
|
container_type | rgb888_items () |
| |
|
item_container_type | items () |
| |
|
void | shift_left (const uint16_t count, const bool wrap) |
| |
|
void | shift_right (const uint16_t count, const bool wrap) |
| |
|
|
using | container_type = std::vector<uint8_t> |
| | pixel container
|
| |
|
using | item_container_type = std::vector<gpio::m5_rmt_item_t> |
| | item container
|
| |
| | UnitLED (const uint16_t num_of_pixels, const rgb::Order order) |
| | Constructor.
|
| |
| virtual bool | begin () override |
| | Begin the unit.
|
| |
|
config_t | config () |
| | Gets the configuration.
|
| |
|
void | config (const config_t &cfg) |
| | Set the configuration.
|
| |
|
uint16_t | numPixels () const |
| | Number of the pixels.
|
| |
| uint8_t | brightness () const |
| | Brightness.
|
| |
| virtual uint16_t | width () const |
| | Number of the pixels.
|
| |
| virtual uint16_t | height () const |
| | Number of the pixels.
|
| |
|
bool | hasWhite () const |
| | Has white data?
|
| |
|
rgb::Order | order () const |
| | Color order.
|
| |
|
int8_t | offsetR () const |
| | Offset of red.
|
| |
|
int8_t | offsetG () const |
| | Offset of green.
|
| |
|
int8_t | offsetB () const |
| | Offset of blue.
|
| |
|
int8_t | offsetW () const |
| | Offset of white.
|
| |
|
const container_type & | pixels () const |
| | pixels container
|
| |
| rgb::Color | color (const uint16_t n) const |
| | Get the Color.
|
| |
| rgb::Color | absoluteColor (const uint16_t n) const |
| | Get the Color.
|
| |
|
bool | writePixels () |
| | Write pixel color to LED.
|
| |
|
bool | show () |
| | Write pixel color to LED (alias)
|
| |
| void | setBrightness (const uint8_t b) |
| | Set the brightness.
|
| |
| bool | setPixelColor (const uint16_t n, const uint8_t r, const uint8_t g, const uint8_t b) |
| | Set pixel color (RGB)
|
| |
| bool | setPixelColor (const uint16_t n, const uint8_t r, const uint8_t g, const uint8_t b, const uint8_t w) |
| | Set pixel color (RGBW)
|
| |
| bool | setPixelColor (const uint16_t n, const rgb::wrgb32_color_t c) |
| | Set pixel color.
|
| |
| bool | setPixelColor (const uint16_t n, const rgb::Color &c) |
| | Set pixel color.
|
| |
| bool | fill (const rgb::Color &c, const uint16_t first=0, const uint16_t count=0) |
| | Fill the specified range with the specified color.
|
| |
| void | clear (void) |
| | Clear pixels.
|
| |
| bool | fillRainbow (const uint16_t first=0, const uint16_t count=0, const uint8_t firstHue=0) |
| | Fill the specified range to rainbow.
|
| |
| bool | fillGradation (const rgb::Color &firstClr, const rgb::Color &lastClr, const uint16_t first=0, const uint16_t count=0) |
| | Fill the specified range to gradation pixels.
|
| |
| bool | fillRandom (const uint16_t first=0, const uint16_t count=0) |
| | Fill the specified range to random color pixels.
|
| |
| void | shiftLeft (const uint16_t count=1) |
| | Shift pixels left.
|
| |
| void | shiftRight (const uint16_t count=1) |
| | Shift pixels right.
|
| |
| void | rotateLeft (const uint16_t count=1) |
| | Rotate pixels left.
|
| |
| void | rotateRight (const uint16_t count=1) |
| | Rotate pixels right.
|
| |
|
virtual uint8_t | maxRotation () const |
| | Get the max rotation.
|
| |
|
float | rotationDegree () const |
| | Get the rotation angle per 1 (degree)
|
| |
|
int8_t | rotation () const |
| | Get the rotation.
|
| |
|
void | setRotation (const int8_t rot) |
| | Set the rotation.
|
| |
|
rgb::Color | operator[] (const uint16_t i) const |
| | rvalue
|
| |
|
PixelProxy | operator[] (const uint16_t i) |
| | lvalue
|
| |