feat: modify CircularStrip constructor parameter types and add SetMultiColors method (#1750)
This commit is contained in:
@ -18,13 +18,14 @@ struct StripColor {
|
||||
|
||||
class CircularStrip : public Led {
|
||||
public:
|
||||
CircularStrip(gpio_num_t gpio, uint8_t max_leds);
|
||||
CircularStrip(gpio_num_t gpio, uint16_t max_leds);
|
||||
virtual ~CircularStrip();
|
||||
|
||||
void OnStateChanged() override;
|
||||
void SetBrightness(uint8_t default_brightness, uint8_t low_brightness);
|
||||
void SetAllColor(StripColor color);
|
||||
void SetSingleColor(uint8_t index, StripColor color);
|
||||
void SetMultiColors(const std::vector<StripColor>& colors);
|
||||
void Blink(StripColor color, int interval_ms);
|
||||
void Breathe(StripColor low, StripColor high, int interval_ms);
|
||||
void Scroll(StripColor low, StripColor high, int length, int interval_ms);
|
||||
|
||||
Reference in New Issue
Block a user